Adjust WidgetDiv height to fit on screen

This commit is contained in:
Evan W. Patton
2017-02-20 18:20:58 -05:00
parent e2b82e7627
commit 93655e42e2

View File

@@ -148,5 +148,5 @@ Blockly.WidgetDiv.position = function(anchorX, anchorY, windowSize,
}
Blockly.WidgetDiv.DIV.style.left = anchorX + 'px';
Blockly.WidgetDiv.DIV.style.top = anchorY + 'px';
Blockly.WidgetDiv.DIV.style.height = windowSize.height + 'px';
Blockly.WidgetDiv.DIV.style.height = (windowSize.height - anchorY) + 'px';
};