1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a bug where the Slider popup display was being shown at the wrong position

This commit is contained in:
ed 2017-10-23 11:48:57 +01:00
parent fc231a862f
commit 331bd17aa5

View file

@ -980,6 +980,11 @@ public:
{
popupDisplay = new PopupDisplayComponent (owner);
if (parentForPopupDisplay != nullptr)
parentForPopupDisplay->addChildComponent (popupDisplay);
else
popupDisplay->addToDesktop (ComponentPeer::windowIsTemporary);
if (style == SliderStyle::TwoValueHorizontal
|| style == SliderStyle::TwoValueVertical)
{
@ -991,11 +996,6 @@ public:
updatePopupDisplay (getValue());
}
if (parentForPopupDisplay != nullptr)
parentForPopupDisplay->addChildComponent (popupDisplay);
else
popupDisplay->addToDesktop (ComponentPeer::windowIsTemporary);
popupDisplay->setVisible (true);
}
}