fixed a bug that context menu goes outside the script region, causing scrollbar showing up. (#857)

This is because the position of context menu is determined by its height + the mouse y position;
When this max-height is in effect, it prevents blockly to calculate the actual height of the menu with menu items.

see https://github.com/LLK/scratch-gui/issues/111
This commit is contained in:
Yu Wang 2017-04-21 04:26:16 +08:00 committed by Ray Schamp
parent 06fa507dbb
commit 12c8031c1b

View file

@ -815,7 +815,6 @@ Blockly.Css.CONTENT = [
'position: absolute;',
'overflow-y: auto;',
'overflow-x: hidden;',
'max-height: 100%;',
'z-index: 20000;', /* Arbitrary, but some apps depend on it... */
'}',