how to set category width??

11 views
Skip to first unread message

yangyi li

unread,
Sep 10, 2020, 9:39:15 AM9/10/20
to Blockly
Hi all,

May I set the width of the category by inject options?

Abby Schmiedt

unread,
Sep 10, 2020, 12:02:45 PM9/10/20
to Blockly
Hello!

There is not a way to set the width of a category in the toolbox through the inject options. Currently, the width of the toolbox is set to the width of the longest name in the toolbox. If you would like to restrict this for some reason you will probably want to add a width to the .blocklyToolboxDiv class.

Hope this helps!
Abby
Reply all
Reply to author
Forward
0 new messages