Browse Source

Make sure scrollbar listeners are updated in Viewport::updateVisibleArea()

tags/2021-05-28
ed 5 years ago
parent
commit
5b65b33280
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      modules/juce_gui_basics/layout/juce_Viewport.cpp

+ 0
- 2
modules/juce_gui_basics/layout/juce_Viewport.cpp View File

@@ -408,7 +408,6 @@ void Viewport::updateVisibleArea()
hbar.setRangeLimits (0.0, contentBounds.getWidth());
hbar.setCurrentRange (visibleOrigin.x, contentArea.getWidth());
hbar.setSingleStepSize (singleStepX);
hbar.cancelPendingUpdate();
if (canShowHBar && ! hBarVisible)
visibleOrigin.setX (0);
@@ -417,7 +416,6 @@ void Viewport::updateVisibleArea()
vbar.setRangeLimits (0.0, contentBounds.getHeight());
vbar.setCurrentRange (visibleOrigin.y, contentArea.getHeight());
vbar.setSingleStepSize (singleStepY);
vbar.cancelPendingUpdate();
if (canShowVBar && ! vBarVisible)
visibleOrigin.setY (0);


Loading…
Cancel
Save