Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc

Issue 2725833003: Bug Fix: List Too Small When Sharing Tab Only (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc
diff --git a/chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc b/chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc
index 5ed6dc073d13a4eb9bec24af688c11a634c5529b..3e19d797192b3f0878f8a030e888fcb09511e2a1 100644
--- a/chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc
+++ b/chrome/browser/ui/views/desktop_capture/desktop_media_picker_views.cc
@@ -169,8 +169,8 @@ DesktopMediaPickerDialogView::DesktopMediaPickerDialogView(
this, std::move(tab_list), kTabStyle, kTabStyle, tab_title_text));
tab_scroll_view->SetContents(list_views_.back());
- tab_scroll_view->ClipHeightTo(kTabStyle.item_size.height(),
- kTabStyle.item_size.height() * 2);
+ tab_scroll_view->ClipHeightTo(kTabStyle.item_size.height() * 7,
msw 2017/03/01 19:00:03 Can you post some screenshots of before and after?
qiangchen 2017/03/01 20:59:42 Reduce it to 5. As 5 * tab height is almost 1 * wi
msw 2017/03/01 23:26:48 nit: I still think it might be better to use just
qiangchen 2017/03/03 16:39:32 Done.
+ kTabStyle.item_size.height() * 10);
tab_scroll_view->set_hide_horizontal_scrollbar(true);
tab_scroll_view->set_background(
views::Background::CreateSolidBackground(bg_color));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698