you broke something?

33 views
Skip to first unread message

Dave Dyer

unread,
Jan 10, 2020, 5:22:23 PM1/10/20
to CodenameOne Discussions

Yesterday's builds were fine.  Today's builds stall with a blank screen, waiting to refresh the
first window.  They seem to get kicked into action by any external event,
such as changing orientation.   Still investigating.

Dave Dyer

unread,
Jan 10, 2020, 7:37:37 PM1/10/20
to CodenameOne Discussions

A stroll through the code revealed that the frame was never laid out, and adding
this incantation to the form creation fixes the problem.

            setAllowEnableLayoutOnPaint(true);

It may be the case that I'm especially vexed by this because my frames
are blank (contain no widgets) from your point of view.

I'd appreciate any insight into why this came up on today's build but never before.

Steve Hannah

unread,
Jan 10, 2020, 8:17:20 PM1/10/20
to codenameone...@googlegroups.com
If you can post a test case, I'd be interested to see it.  We recently turned off this "layout on paint" feature and added the manual override because:
1. Turning it off caused significant performance improvements, especially when scrolling.
2. All of my samples seemed to still work fine with it off.

Rather than rely on this flag, it would be better to identify the edge cases that fail without it, so we can fix those.



--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/c61d51ad-6b65-4899-8608-edfbe2125c84%40googlegroups.com.


--
Steve Hannah
Software Developer
Codename One

Dave Dyer

unread,
Jan 11, 2020, 4:25:17 PM1/11/20
to CodenameOne Discussions

Rather than rely on this flag, it would be better to identify the edge cases that fail without it, so we can fix those.

I'll see what I can do.  My use of the window system involves not using
any standard widgets or standard layout managers, so it might be
difficult to simplify.

Dave Dyer

unread,
Jan 13, 2020, 7:29:20 PM1/13/20
to CodenameOne Discussions
See issue #2989


Reply all
Reply to author
Forward
0 new messages