google / blockly-devtools

Tools for Blockly app developers to help build custom blocks.
http://developer.google.com/blockly
Apache License 2.0
60 stars 31 forks source link

BlockEditor: Preview column should be fixed width #310

Open AnmAtAnm opened 5 years ago

AnmAtAnm commented 5 years ago

Currently, the blocklyPreviewContainer

adapts to the size of its children, the preview workspace, the block definition code preview, and the generator code preview. While the children are configured to scroll if their length is too wide, the lack of a size or limit to the blocklyPreviewContainer means the container grows before the scrollbar is revealed. Further, there is no trigger to resize the preview workspace, so the workspace can "grow" a right margin:

screen shot 2018-11-28 at 5 20 22 pm