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:
@@ -100,6 +100,7 @@ TIFFView::TIFFView(const BRect &frame, const char *name,
|
|||||||
fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression",
|
fCompressionMF = new BMenuField(BRect(20, 50, 215, 70), "compression",
|
||||||
"Use Compression:", menu, true);
|
"Use Compression:", menu, true);
|
||||||
AddChild(fCompressionMF);
|
AddChild(fCompressionMF);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
@@ -143,6 +144,7 @@ TIFFView::MessageReceived(BMessage* message)
|
|||||||
fSettings->SetGetInt32(TIFF_SETTING_COMPRESSION, &value);
|
fSettings->SetGetInt32(TIFF_SETTING_COMPRESSION, &value);
|
||||||
fSettings->SaveSettings();
|
fSettings->SaveSettings();
|
||||||
}
|
}
|
||||||
|
fCompressionMF->ResizeToPreferred();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@@ -167,6 +169,8 @@ void
|
|||||||
TIFFView::AllAttached()
|
TIFFView::AllAttached()
|
||||||
{
|
{
|
||||||
fCompressionMF->Menu()->SetTargetForItems(this);
|
fCompressionMF->Menu()->SetTargetForItems(this);
|
||||||
|
fCompressionMF->SetDivider(fCompressionMF->StringWidth(fCompressionMF->Label()) + 3);
|
||||||
|
fCompressionMF->ResizeToPreferred();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user