Setting a fixed width and height for a block

93 views
Skip to first unread message

Ahana Ghosh

unread,
Dec 17, 2022, 10:08:31 AM12/17/22
to Blockly
Hi,

I was wondering if there was a way to set a fixed width and height for a block. Currently, it changes based on the text/image contained in the block. 

Thanks,
Ahana

Beka Westberg

unread,
Dec 17, 2022, 12:14:28 PM12/17/22
to blo...@googlegroups.com
Hello Ahana! Thank you for your question =)

If you want to customize the shapes of your blocks, you will need to define a new renderer. I recommend checking out the custom renderers codelab as a good place to start!

I hope that helps =) If you have any further questions please reply!
--Beka

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/12516ebf-449a-4bdb-be72-6fa0902c827dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages