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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 2143473002: [ash-md] Updates window title if it is changed after entering overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates LabelButton label size when text is changed Created 4 years, 5 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 | ui/views/controls/button/label_button_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index 0618cca6cfe71a213a9cb613132866d85843f938..53b92479495add0133a42dfd94401d93bb5ebb8c 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -541,6 +541,7 @@ void LabelButton::SetTextInternal(const base::string16& text) {
void LabelButton::ChildPreferredSizeChanged(View* child) {
ResetCachedPreferredSize();
PreferredSizeChanged();
+ Layout();
sadrul 2016/07/12 16:57:42 Interesting. Looks like PreferredSizeChanged() inv
varkha 2016/07/12 19:58:44 Discussed this offline. sadrul@ thought we could h
}
ui::NativeTheme::Part LabelButton::GetThemePart() const {
« no previous file with comments | « no previous file | ui/views/controls/button/label_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698