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

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

Issue 2324613002: Bug Fix: Desktop Picker Window Shows Unnecessary Scrollbar [M54] (Closed)
Patch Set: Created 4 years, 3 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_list_view.cc
diff --git a/chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc b/chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc
index ef1b7644b09028168643bc7f842db7ecd5d84138..045d39423db4f3c470d801e43e58a24e610faa14 100644
--- a/chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc
+++ b/chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc
@@ -89,6 +89,14 @@ void DesktopMediaListView::Layout() {
x += active_style_->item_size.width();
}
+
+ // TODO(qiangchen): Bounded ScrollView has a bug to display horizontal bar
+ // always, and then display vertical bar when the content just fit the
+ // container. See crbug/644463.
+ // Fix the underlying issue and remove the following code.
+ gfx::Size preferred_size = GetPreferredSize();
+ preferred_size.SetToMax(parent()->GetContentsBounds().size());
+ SetSize(preferred_size);
}
bool DesktopMediaListView::OnKeyPressed(const ui::KeyEvent& event) {
« 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