mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-16 00:34:19 +00:00
Make sure scrollbar listeners are updated in Viewport::updateVisibleArea()
This commit is contained in:
parent
e095248d6d
commit
5b65b33280
1 changed files with 0 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue