Skip to content

Commit

Permalink
Tracker: get StringWidth of menuField, not view
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Aug 31, 2013
1 parent 86af5f1 commit d691c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kits/tracker/FindPanel.cpp
Expand Up @@ -955,7 +955,7 @@ FindPanel::ResizeMenuField(BMenuField* menuField)
for (int32 index = menu->CountItems(); index-- > 0; ) {
BMenuItem* item = menu->ItemAt(index);
if (item->Label() != NULL)
width = std::max(width, StringWidth(item->Label()));
width = std::max(width, menuField->StringWidth(item->Label()));

BMenu* submenu = item->Submenu();
if (submenu != NULL) {
Expand Down

0 comments on commit d691c48

Please sign in to comment.