BMenuField: If fixed size always set max content width

When you resize, also set max content width.

Create a SetMaxContentWidth() method that includes the margins.
This commit is contained in:
John Scipione
2013-05-30 00:05:17 -04:00
parent d926be8ab3
commit ca3a1c0451
3 changed files with 30 additions and 13 deletions
+1
View File
@@ -51,6 +51,7 @@ public:
virtual void FrameResized(float width, float height);
virtual void MessageReceived(BMessage* msg);
virtual void MakeFocus(bool focused = true);
virtual void SetMaxContentWidth(float width);
void TogglePopUpMarker(bool show)
{ fShowPopUpMarker = show; }