# Question: How to resize shape widgets through code?

**URL:** <https://forum.readymag.com/t/question-how-to-resize-shape-widgets-through-code/4626>\
**Category:** Custom code\
**Created:** [April 1, 2025, 10:05am UTC](https://forum.readymag.com/t/question-how-to-resize-shape-widgets-through-code/4626 "2025-04-01T10:05:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pspsmeow](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.readymag.com/pspsmeow/32/2453_2.png) [@pspsmeow](https://forum.readymag.com/u/pspsmeow)\
**Post date:** [April 1, 2025, 10:05am UTC](https://forum.readymag.com/t/question-how-to-resize-shape-widgets-through-code/4626/1 "2025-04-01T10:05:02Z")

</div>

Hey!

I’m designing an interactive segment in my portfolio where I want to manually change certain widgets sizes through my code (like for example i want to change a shape widget from square to rectangle). Does anyone know how to achieve this? Or at least guide me in the direction to do so please?
