I recommend trying to fix these issues without resorting to the
setAllowEnableLayoutOnPaint(true).  We turned that option off as default
because of noticeable graphics performance differences on devices.  In some
cases it makes sense that you should need to "revalidate" instead of
"repaint", if the container needs to be relaid out.  If you have a case
that "doesn't make sense", or that doesn't seem to work at all without the
setAllowEnableLayoutOnPaint(true), please file an issue with a
self-contained test case so we can address it.

Additionally, it is almost always better to use
revalidateWithAnimationSafety() instead of revalidate(), as this will avoid
conflicts with layout animations which may be in progress.

Best regards

Steve

On Tue, Jan 21, 2020 at 12:01 PM Ivan <[email protected]> wrote:

>  My app has also similar problems. I have to call revalidate() on places
> where the app previously repaint automatically and on other places I have
> to replace repaint() with revalidate() to repaint the form.
>
> But I found this post and calling setAllowEnableLayoutOnPaint(true)
> resolved my issues ... for now
> thanks
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/6f733406-0434-4e0b-a8b5-0e52ec52ac62%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/6f733406-0434-4e0b-a8b5-0e52ec52ac62%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKX9dpWasRZUnwqzoj6%2B3-fKpmPCRn1MYCbiJc%2Btc9gzZw%40mail.gmail.com.

Reply via email to