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

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

Issue 2304743002: Bug Fix: Desktop Picker Window Shows Unnecessary Scrollbar (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 8b2a367de1e2e256e85bdd630f521386c055220e..5f59f0e90ff3e34ad1f01ec2213b9f29ba2ec48c 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
@@ -118,6 +118,9 @@ void DesktopMediaListView::Layout() {
x += active_style_->item_size.width();
}
+
+ SetSize(gfx::Size(active_style_->columns * active_style_->item_size.width(),
msw 2016/09/02 00:35:29 Layout() is typically called in response to size c
qiangchen 2016/09/02 16:19:52 See my comment#5 in the bug for a thorough cause.
sky 2016/09/02 18:38:30 I agree this seems weird, but ScrollView has weird
qiangchen 2016/09/02 22:10:57 Done. As our logic guarantees no horizontal overf
+ y + active_style_->item_size.height()));
}
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