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);
|
GetContentSize(&labelWidth, &labelHeight);
|
||||||
|
|
||||||
// truncate if needed
|
// truncate if needed
|
||||||
|
// TODO: Actually, this is still never triggered
|
||||||
if (fBounds.Width() > labelWidth)
|
if (fBounds.Width() > labelWidth)
|
||||||
fSuper->DrawString(fLabel);
|
fSuper->DrawString(fLabel);
|
||||||
else {
|
else {
|
||||||
@@ -440,7 +441,7 @@ BMenuItem::Draw()
|
|||||||
void
|
void
|
||||||
BMenuItem::Highlight(bool flag)
|
BMenuItem::Highlight(bool flag)
|
||||||
{
|
{
|
||||||
Menu()->Draw(Frame());
|
Menu()->Invalidate(Frame());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -605,8 +606,7 @@ BMenuItem::Select(bool on)
|
|||||||
} else if (IsEnabled()) {
|
} else if (IsEnabled()) {
|
||||||
fSelected = on;
|
fSelected = on;
|
||||||
Highlight(on);
|
Highlight(on);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user