Shiny Language Reference
Language Reference > Panel Functions
setpanelsize
setpanelsize(int Width, int Height);
Sets the size of the display panel
SETPANELSIZE immediately resizes the display panel to the specified width and height.
Technical note: SETPANELSIZE internally calls the plugin Render handler once the panel has been resized. You should take this into account when resizing the display panel (for example, if variables in your plugin control what is being drawn to the panel, consider the values of those variables before and after calling SETPANELSIZE). For the same reason it is unnecessary to manually call redraw after calling SETPANELSIZE.
Note: If you wish to specify off-screen sizes for the panel you may use setpanelboundscheck to disable the boundary checking.
Parameters
Width
The width of the panel in pixels.
Height
The height of the panel in pixels.
Return Value
None
Example Code
// Make the panel 50 pixels wide, 100 pixels long
setpanelsize(50, 100);