If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 11
Desktop OS Windows 10 Pro
Simulator Latest
Device PC (Simulator),  IOS 13+, Android 7+

Have a Dialog set to occupy 100% of screen.
When rotating orientation, Dialog does not fill full screen.
See Pic RotateDialog_1.JPG (Initially opened Dialog. Full Screen)
See Pic RotateDialog_2.JPG (Rotate Landscape, Dialog using 20% of screen)
See Pic RotateDialog_3.JPG (Rotate Portrait, Dialog using 20% of screen)

Code:
            Dialog dlg = new Dialog("A3-Tech Customer Search");
            try {
                int rows = 3;
                dlg.setLayout(new BorderLayout());
                Container ContainerDataBaseContainer = new Container(new 
com.codename1.ui.table.TableLayout(rows, 1));
                ContainerDataBaseContainer.setScrollableY(true);
                for (int a = 0; a < rows; a++) {
                    buildConstrantsGeneric(ContainerDataBaseContainer, new 
Label("Label Row [" + (a + 1) + "]"), a, 0, 100);
                }
                Container OptionsContainer = new Container(new 
com.codename1.ui.table.TableLayout(1, 3));
                Button CmdCancel = new Button("Cancel", "Button");
                CmdCancel.addActionListener(e -> {
                    dlg.dispose();
                    System.exit(0);
                });
                Button ExecSearch = new Button("Execute Search", "Button");
                ExecSearch.addActionListener(e -> {
                    dlg.dispose();
                    System.exit(0);
                });
                Button OpenRos = new Button("Load Open Invoices", "Button");
                OpenRos.addActionListener(e -> {
                    dlg.dispose();
                    System.exit(0);
                });
                buildConstrantsGeneric(OptionsContainer, OpenRos, 0, 0, 33);
                buildConstrantsGeneric(OptionsContainer, ExecSearch, 0, 1, 
33);
                buildConstrantsGeneric(OptionsContainer, CmdCancel, 0, 2, 
34);
                dlg.add(BorderLayout.CENTER, ContainerDataBaseContainer);
                dlg.add(BorderLayout.SOUTH, OptionsContainer);
            } catch (Exception e) {
                e.printStackTrace();
            }
            dlg.show(0, 0, 0, 0);

    public static TableLayout.Constraint buildConstrantsGeneric(Container 
CTR, Component comp, int row, int col, int widthPercent) {
        TableLayout.Constraint ConSt = ((TableLayout) 
CTR.getLayout()).createConstraint(row, col);
        ConSt.setWidthPercentage(widthPercent);
        CTR.addComponent(ConSt, comp);
        return ConSt;
    }

Thoughts?

Regards

-- 
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/43a21ddd-36e7-4dd8-ae33-a4af162390bb%40googlegroups.com.

Reply via email to