BOptionPopUp: call the superclass AttachedToWindow.
It's ther that the view background color is inherited from the parent. Fix option popups having a white background eg. in MediaPlayer preferences. Thanks to DeadYak for noticing the problem.
This commit is contained in:
@@ -197,6 +197,8 @@ BOptionPopUp::AllAttached()
|
|||||||
void
|
void
|
||||||
BOptionPopUp::AttachedToWindow()
|
BOptionPopUp::AttachedToWindow()
|
||||||
{
|
{
|
||||||
|
BOptionControl::AttachedToWindow();
|
||||||
|
|
||||||
BMenu* menu = fMenuField->Menu();
|
BMenu* menu = fMenuField->Menu();
|
||||||
if (menu != NULL) {
|
if (menu != NULL) {
|
||||||
float labelWidth = fMenuField->StringWidth(fMenuField->Label());
|
float labelWidth = fMenuField->StringWidth(fMenuField->Label());
|
||||||
|
|||||||
Reference in New Issue
Block a user