From 6ec77a597a2133b24a386a959e07d1fc4b112d48 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 27 Jan 2016 08:20:26 -0800 Subject: [PATCH] Fix scrollbar visibility when horizontal --- core/scrollbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scrollbar.js b/core/scrollbar.js index e872900f00..624ae270ae 100644 --- a/core/scrollbar.js +++ b/core/scrollbar.js @@ -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 ||