mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
fix scrollbar visibility when horizontal
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user