Seems to work if I do something along the lines of

  @Override
    public Dimension calcPreferredSize()
    {
        return new Dimension(StateMachine.w,StateMachine.h/2);
    }

cheers.

On Monday, February 25, 2019 at 11:01:26 PM UTC+8, Gareth Murfin wrote:
>
> Ive made a pie chart that draws on canvas, when I add this it doesnt 
> appear, I have only managed to find one way to get it working in a test 
> form but as soon as I add other things to the form it seems to stop 
> displaying. Is there anything special I need to do to get my custom 
> component actually appearing correctly?
>

-- 
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-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/b895684e-f007-4734-befe-35288351d031%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to