Small change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13310 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -363,6 +363,7 @@ BMenuItem::DrawContent()
|
||||
GetContentSize(&labelWidth, &labelHeight);
|
||||
|
||||
// truncate if needed
|
||||
// TODO: Actually, this is still never triggered
|
||||
if (fBounds.Width() > labelWidth)
|
||||
fSuper->DrawString(fLabel);
|
||||
else {
|
||||
@@ -440,7 +441,7 @@ BMenuItem::Draw()
|
||||
void
|
||||
BMenuItem::Highlight(bool flag)
|
||||
{
|
||||
Menu()->Draw(Frame());
|
||||
Menu()->Invalidate(Frame());
|
||||
}
|
||||
|
||||
|
||||
@@ -605,8 +606,7 @@ BMenuItem::Select(bool on)
|
||||
} else if (IsEnabled()) {
|
||||
fSelected = on;
|
||||
Highlight(on);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user