Capture the sizeChanged event in code

10 views
Skip to first unread message

poll...@outlook.com

unread,
Jul 30, 2017, 12:16:05 PM7/30/17
to CodenameOne Discussions

IDE: NetBeans/Eclipse/IDEA

I would like to change height/width of form based on the
sizeChanged event.  How do I capture that in code?

Shai Almog

unread,
Jul 30, 2017, 11:01:07 PM7/30/17
to CodenameOne Discussions, poll...@outlook.com
Form size is already set on size change event. You shouldn't explicitly set sizes or positions in Codename One as those are determined by layout.
If you can explain what you are trying to achieve as an end result I can help more.
Reply all
Reply to author
Forward
0 new messages