Browse Source

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

tags/2021-05-28
ed 7 years ago
parent
commit
331bd17aa5
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      modules/juce_gui_basics/widgets/juce_Slider.cpp

+ 5
- 5
modules/juce_gui_basics/widgets/juce_Slider.cpp 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);
}
}


Loading…
Cancel
Save