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:
Adrien Destugues
2014-12-12 16:18:34 +01:00
parent f0eb9fcd93
commit 3bcb69811b
+2
View File
@@ -197,6 +197,8 @@ BOptionPopUp::AllAttached()
void
BOptionPopUp::AttachedToWindow()
{
BOptionControl::AttachedToWindow();
BMenu* menu = fMenuField->Menu();
if (menu != NULL) {
float labelWidth = fMenuField->StringWidth(fMenuField->Label());