From 3bcb69811be906f594939fa43cd8e81018367d1a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 12 Dec 2014 16:18:34 +0100 Subject: [PATCH] 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. --- src/kits/interface/OptionPopUp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kits/interface/OptionPopUp.cpp b/src/kits/interface/OptionPopUp.cpp index aaf9fd68ad..6b897591b1 100644 --- a/src/kits/interface/OptionPopUp.cpp +++ b/src/kits/interface/OptionPopUp.cpp @@ -197,6 +197,8 @@ BOptionPopUp::AllAttached() void BOptionPopUp::AttachedToWindow() { + BOptionControl::AttachedToWindow(); + BMenu* menu = fMenuField->Menu(); if (menu != NULL) { float labelWidth = fMenuField->StringWidth(fMenuField->Label());