| 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 &&
|
| size_delta >= kMinFontSizeDelta) {
|
| id_label->SetFontList(base_font_list.DeriveWithSizeDelta(size_delta));
|
| --size_delta;
|
|
|