Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
levadadenys committed Mar 6, 2023
1 parent 43167da commit d48fd16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/ui/function_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,15 @@ Blockly.FunctionEditor.prototype.addEditorFrame_ = function() {
: Blockly.hasCategories
? goog.dom.getElementByClass('blocklyToolboxDiv').getBoundingClientRect()
.width
: Blockly.mainBlockSpace.blockSpaceEditor.getToolboxWidth()
? goog.dom
.getElementByClass('blocklyFlyoutBackground')
.getBoundingClientRect().width
: noToolboxPadMagicNumber;

console.log('BLOCKLY CONSOLE:');
console.log(Blockly.mainBlockSpace.blockSpaceEditor.getToolboxWidth());

var top = 0;
this.frameBase_ = Blockly.createSvgElement(
'rect',
Expand Down

0 comments on commit d48fd16

Please sign in to comment.