Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 7501d4f

Browse files
author
Aaron Imming
committed
Use bounds in memory, rather than accessing DOM
1 parent d3045d5 commit 7501d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/hooks/flyout_vertical.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Blockly.VerticalFlyout.prototype.position = function() {
162162
if (targetWorkspaceMetrics.toolboxWidth) {
163163
// deriv-bot: Allow for dynamic toolbox width, specifies where to position
164164
// the flyout.
165-
x = this.parentToolbox_.HtmlDiv.clientWidth + Blockly.BlockSvg.TAB_WIDTH;
165+
x = this.toolbox_bounds_.width + Blockly.BlockSvg.TAB_WIDTH;
166166
}
167167
} else {
168168
// Because the anchor point of the flyout is on the left, but we want

0 commit comments

Comments
 (0)