Hi,
I am using HTML full screen API to set blocklyDiv to the full screen
so i placed dropdowndiv, widgetdiv and tooltip inside same div but it leds to an issue in dropdown position for every block like this
Here is the code
html
<div id="blocklyDiv" style="height: 100%; width: 100%;"></div>
JS
var workspace=document.getElementById('blocklyDiv')
Blockly.setParentContainer(workspace)
Blockly.WidgetDiv.CONTAINER_ELEMENT = workspace;
Blockly.DropDownDiv.CONTAINER_ELEMENT = workspace;
Blockly.Tooltip.CONTAINER_ELEMENT = workspace;
workspace = Blockly.inject("blocklyDiv", {
media: "/media/",
grid: {
spacing: 20,
length: 3,
colour: '#ccc',
snap: true
},
move: {
scrollbars: true,
drag: true,
wheel: true
},
zoom: {
controls: true,
// wheel: true,
startScale: 0.9,
maxScale: 3,
minScale: 0.3,
scaleSpeed: 1.2
},
toolbox: document.getElementById("toolbox")
})
What am i missing here?
P.S. I called fullscreen to the BlocklyDiv and dropdowndiv position is perfect in full screen mode
Thanks in advance :)