Chromium Code Reviews| Index: ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| diff --git a/ash/common/system/chromeos/ime_menu/ime_list_view.cc b/ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| index e858d695a5210097218fdd30d02054f7c7cdb70c..e3303da79416f6fba95b100b298ba4a97ec2f7f5 100644 |
| --- a/ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| +++ b/ash/common/system/chromeos/ime_menu/ime_list_view.cc |
| @@ -105,7 +105,8 @@ class ImeListItemView : public ActionableView { |
| // |kMenuIconSize| is not enough. The label will trigger eliding as "I..." |
| // or "...". So we shrink the font size until it fits within the bounds. |
| int size_delta = -1; |
| - while (id_label->GetPreferredSize().width() > kMenuIconSize && |
| + while ((id_label->GetPreferredSize().width() - |
| + id_label->GetInsets().width()) > kMenuIconSize && |
|
tdanderson
2017/02/10 16:16:45
Can you please post a screenshot to the bug of wha
Azure Wei
2017/02/13 01:07:29
Sure, attached screenshot to crbug.com/690563. Ple
tdanderson
2017/02/13 17:03:49
Thanks a lot, and sgabriel@ has signed off on this
|
| size_delta >= kMinFontSizeDelta) { |
| id_label->SetFontList(base_font_list.DeriveWithSizeDelta(size_delta)); |
| --size_delta; |