--- title: "system.gui.resizeComponent" --- # system.gui.resizeComponent > feature="system.gui.transform" in version="7.8.1" > link="https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-gui/system-gui-transform" > />

## Description Sets a component's size at runtime. The coordinates work in the same way as the system.gui.moveComponent function. ## Syntax `system.gui.resizeComponent(component, width, height)` * Parameters * JComponent `component` - The component to move. * int `width` - The new width for the component * int `height` - The new height for the component * Returns * Nothing * Scope * Client ## Code Examples ```python title="Code Snippet" #This code would go in a Timer's propertyChange script for animation \ if event.propertyName == "value": newWidth = event.newValue; rect = event.source.parent.getComponent("Rectangle") system.gui.resizeComponent(rect, newWidth, 80) ```