Skip to content

Commit

Permalink
Fix scrollbar visibility when horizontal
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-fenichel committed Jan 27, 2016
1 parent dc1f03a commit 6ec77a5
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 6ec77a5

Please sign in to comment.