here is the smallest possible I could get to reproduce the problem. There is only a one line difference between the two dialogs. It is that one line that causes MyDlg2 to break. test1 (MyDlg) the X is chopped off on the right test2 (MyDlg2) the 4th column is completely gone.
<https://lh3.googleusercontent.com/-kwURpG-yGFc/V5b2JEWF0_I/AAAAAAAAEIs/Oqfi2oSjQTYvgsp_wa9Ac6Q6hRyX3sLCQCLcB/s1600/Screenshot%2Bfrom%2B2016-07-25%2B22-33-07.png> public class FrmMain extends com.codename1.ui.Form { public FrmMain() { this(com.codename1.ui.util.Resources.getGlobalResources()); } public FrmMain(com.codename1.ui.util.Resources resourceObjectInstance) { initManualComponents(); } protected void initManualComponents() { this.setLayout(new BorderLayout()); Button btn = new Button("Test"); btn.addActionListener(evt -> onClick()); this.add(BorderLayout.NORTH, btn); Button btn2 = new Button("Test2"); btn2.addActionListener(evt -> onClick2()); this.add(BorderLayout.SOUTH, btn2); } protected void onClick() { new MyDlg().show(); } protected void onClick2() { new MyDlg2().show(); } class MyDlg extends Dialog { protected Button btnClose = new Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, UIManager.getInstance().getComponentStyle("TitleCommand"))); public MyDlg() { initManualComponents(); } protected void initManualComponents() { this.setLayout(new BorderLayout()); btnClose.addActionListener(evt -> dispose()); TableLayout layout = new TableLayout(10,4); Container cnt1 = new Container(layout); cnt1.add(layout.createConstraint().widthPercentage(15), new Label("A")); cnt1.add(layout.createConstraint().widthPercentage(35), new Label("B")); cnt1.add(layout.createConstraint().widthPercentage(35), new Label("C")); cnt1.add(layout.createConstraint().widthPercentage(15), new Label("D")); cnt1.add(layout.createConstraint().horizontalSpan(4).horizontalAlign(Component.RIGHT), btnClose); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("")); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("Span 1")); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("Textfield")); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("X")); this.add(BorderLayout.CENTER, cnt1); } } class MyDlg2 extends Dialog { protected Button btnClose = new Button(FontImage.createMaterial(FontImage.MATERIAL_CLEAR, UIManager.getInstance().getComponentStyle("TitleCommand"))); public MyDlg2() { initManualComponents(); } protected void initManualComponents() { this.setLayout(new BorderLayout()); btnClose.addActionListener(evt -> dispose()); TableLayout layout = new TableLayout(10,4); Container cnt1 = new Container(layout); cnt1.add(layout.createConstraint().widthPercentage(15), new Label("A")); cnt1.add(layout.createConstraint().widthPercentage(35), new Label("B")); cnt1.add(layout.createConstraint().widthPercentage(35), new Label("C")); cnt1.add(layout.createConstraint().widthPercentage(15), new Label("D")); cnt1.add(layout.createConstraint().horizontalSpan(4).horizontalAlign(Component.RIGHT), btnClose); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("")); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("Span 1")); cnt1.add(layout.createConstraint().horizontalSpan(1), new TextField()); cnt1.add(layout.createConstraint().horizontalSpan(1), new Label("X")); this.add(BorderLayout.CENTER, cnt1); } } } Peter On Monday, July 25, 2016 at 9:02:44 PM UTC-7, Shai Almog wrote: > > This is a complex problem to debug and the code requires an understanding > of what you are trying to achieve. Try reproducing it with the smallest > possible table and just buttons then file an issue with something like that. > > We are entering the 3.5 codefreeze and have a lot of issues after that so > I'm not sure when I'll be able to dig into that more closely. > -- 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/ea5f79be-c36e-4a00-aa6c-177353f440a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
