mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Merge pull request #26 from rachel-fenichel/bugfix/horizontal_scrollbar
Fix scrollbar visibility when horizontal
This commit is contained in:
commit
1c5b58ca83
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ Blockly.Scrollbar.prototype.resize = function(opt_metrics) {
|
|||
// Only show the scrollbar if needed.
|
||||
// Ideally this would also apply to scrollbar pairs, but that's a bigger
|
||||
// headache (due to interactions with the corner square).
|
||||
this.setVisible(outerLength < hostMetrics.contentHeight);
|
||||
this.setVisible(outerLength < hostMetrics.contentWidth);
|
||||
}
|
||||
this.ratio_ = outerLength / hostMetrics.contentWidth;
|
||||
if (this.ratio_ === -Infinity || this.ratio_ === Infinity ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue