I set it to a fixed size:

class MyContainerTop extends Container {

        MyContainerTop(Layout s) {
            super(s);
        }

        @Override
        public Dimension calcPreferredSize() {

            int h = Display.getInstance().convertToPixels(SIZE, false);

            Dimension d = super.calcPreferredSize();
            d.setHeight(h);

            return d;
        }
    }

-- 
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].
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/1bd9ce19-b880-483f-b610-fe0cda299a0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to