Skip to content

Commit

Permalink
Merge pull request #26 from rachel-fenichel/bugfix/horizontal_scrollbar
Browse files Browse the repository at this point in the history
Fix scrollbar visibility when horizontal
  • Loading branch information
rachel-fenichel committed Feb 8, 2016
2 parents dc1f03a + 6ec77a5 commit 1c5b58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 1c5b58c

Please sign in to comment.