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

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_views.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: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
index 2d35985af1b6b1267a775c7083a3fdc3f1794506..965d6d1a99947edf09454a3ba4420eaf44339a66 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
@@ -244,7 +244,7 @@ views::View* CardUnmaskPromptViews::CreateFootnoteView() {
return storage_row_;
}
-gfx::Size CardUnmaskPromptViews::GetPreferredSize() const {
+gfx::Size CardUnmaskPromptViews::GetUnsnappedPreferredSize() const {
// Must hardcode a width so the label knows where to wrap.
Peter Kasting 2017/03/30 00:35:34 Nit: I suggest filing a followup bug on computing
const int kWidth = 375;
return gfx::Size(kWidth, GetHeightForWidth(kWidth));
Peter Kasting 2017/03/30 00:35:34 This line exposes a problem I didn't fully think t

Powered by Google App Engine
This is Rietveld 408576698