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:
parent
fc231a862f
commit
331bd17aa5
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue