Flyout Scrollbar - wont show last item

121 views
Skip to first unread message

David Dcsdb

unread,
May 31, 2015, 8:30:35 AM5/31/15
to blo...@googlegroups.com
Hi Ihave run into a problem, if you set the height of Blockly to less that 500px and have 8 normal sized blocks in the fly out the scroll bar appears in the fly out but you cant scroll down to show the last block. Has anyone else come across this?


Carlos Pereira

unread,
May 31, 2015, 4:29:33 PM5/31/15
to blo...@googlegroups.com
Testing with https://blockly-demo.appspot.com/static/demos/code/index.html I cannot really replicate your problem. Are you modifying the wrapper that contains the blockly workspace? In older versions of Blockly I sometimes had issue getting blockly to refresh the workspace, but haven't experience that in a while. You could try in javascript to force a refresh with:

workspace.render()

or more abruptly:

workspace.setVisible(false);
workspace.setVisible(true);

Where workspace is your saved workspace instance, or if you are not saving it you could try the deprecated Blockly.mainWorkspace .

David Dcsdb

unread,
May 31, 2015, 5:33:31 PM5/31/15
to blo...@googlegroups.com
OK, I see that, perhaps it is because I am using the old iFrame way of embeding. I will try div injection and see how that goes.

Thank you. I will tell you how it goes.

David Dcsdb

unread,
Jun 2, 2015, 2:07:16 AM6/2/15
to blo...@googlegroups.com
OK! Fixed, it was due to using the iFrame implementation, I changed it to div and all is well with the world. Thank you.

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/rDbOLmAlwIg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages