resize the BMenuField to leave enough space. Actually we should use a

BOptionPopUp instead


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19278 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-11-14 15:56:22 +00:00
parent 3f4cc718eb
commit 042d96cb1d
@@ -100,6 +100,7 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression",
"Use Compression:", menu, true);
AddChild(fCompressionMF);
}
// ---------------------------------------------------------------
@@ -143,6 +144,7 @@ TIFFView::MessageReceived(BMessage* message)
fSettings->SetGetInt32(TIFF_SETTING_COMPRESSION, &value);
fSettings->SaveSettings();
}
fCompressionMF->ResizeToPreferred();
break;
}
default:
@@ -167,6 +169,8 @@ void
TIFFView::AllAttached()
{
fCompressionMF->Menu()->SetTargetForItems(this);
fCompressionMF->SetDivider(fCompressionMF->StringWidth(fCompressionMF->Label()) + 3);
fCompressionMF->ResizeToPreferred();
}