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

Unified Diff: ui/views/bubble/info_bubble.cc

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 9 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
Index: ui/views/bubble/info_bubble.cc
diff --git a/ui/views/bubble/info_bubble.cc b/ui/views/bubble/info_bubble.cc
index 0b633c919269133c1d5b3c1c278c1731edc027e8..b996f60b3a86dd724e1f2e17106cea0e9f2f8097 100644
--- a/ui/views/bubble/info_bubble.cc
+++ b/ui/views/bubble/info_bubble.cc
@@ -86,7 +86,7 @@ NonClientFrameView* InfoBubble::CreateNonClientFrameView(Widget* widget) {
return frame_;
}
-gfx::Size InfoBubble::GetPreferredSize() const {
+gfx::Size InfoBubble::GetUnsnappedPreferredSize() const {
if (preferred_width_ == 0)
return BubbleDialogDelegateView::GetPreferredSize();
Peter Kasting 2017/03/30 00:35:36 I think this causes an infinite loop. Has to be V

Powered by Google App Engine
This is Rietveld 408576698