mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Use Infinity instead of a large number
This commit is contained in:
@@ -468,7 +468,7 @@ Blockly.Flyout.prototype.setBackgroundPathHorizontal_ =
|
||||
* Scroll the flyout to the top.
|
||||
*/
|
||||
Blockly.Flyout.prototype.scrollToStart = function() {
|
||||
this.scrollbar_.set((this.horizontalLayout_ && this.RTL) ? 100000 : 0);
|
||||
this.scrollbar_.set((this.horizontalLayout_ && this.RTL) ? Infinity : 0);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user