Hi Steve, it seems it is related to content of the SOUTH area, try this:

public void testIOSTextRegression() {
        Form f = new Form();
        
        f.setLayout(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));
        
        Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
        c.setScrollableY(true);
        Container btnsContainer = new Container(new 
BoxLayout(BoxLayout.Y_AXIS));
        
        Label frmIco = new Label();
        FontImage.setMaterialIcon(frmIco, FontImage.MATERIAL_INPUT, 15);
        //frmIco.setIcon(createFormIcon(frmIco, FontImage.MATERIAL_INPUT, 
15));
        Container iconCont = new Container(new FlowLayout(CENTER));
        iconCont.add(frmIco);
        
        c.add(iconCont);
        
        Container codeContainer = new Container(new 
BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));    
        TextField code = new TextField("", "code_hnt");    
            
        codeContainer.add(BorderLayout.CENTER, code);
        Button history = new Button();
        FontImage.setMaterialIcon(history, FontImage.MATERIAL_HISTORY);
        
        codeContainer.add(BorderLayout.EAST, history);
                
        c.add(codeContainer);

        f.addComponent(BorderLayout.CENTER, c);
        
        /******************************************/
        
        Container container1 = new Container(new GridLayout(2));
        Container container2 = new Container(new GridLayout(2));
        Container container3 = new Container(new GridLayout(2));
        
        container1.add(getDoubleHeightButton("b11"));
        container1.add(getDoubleHeightButton("b12"));
        
        container2.add(getDoubleHeightButton("b21"));
        container2.add(getDoubleHeightButton("b22"));
        
        container3.add(getDoubleHeightButton("b31"));
        container3.add(getDoubleHeightButton("b32"));
        
        btnsContainer.add(container1);
        btnsContainer.add(container2);
        btnsContainer.add(container3);
        
        f.addComponent(BorderLayout.SOUTH, btnsContainer);
        
        /******************************************/
        
        f.show();
    }
    
    private Button getDoubleHeightButton(String title){
        return new Button(title){
            @Override
            protected Dimension calcPreferredSize() {
                Dimension d = super.calcPreferredSize();
                return new Dimension(d.getWidth(), d.getHeight()*2);
            }
        };
    }



Dňa pondelok, 30. októbra 2017 13:58:52 UTC+1 Steve Hannah napísal(-a):
>
> I can't think of anything that would have caused this either.  I tried 
> building a sample app with the code provided, and it seems to be working 
> fine in the iOS simulator for an iPhone SE, and on my actual device iPhone 
> 8.
>
> My test case is 
>
> public void testIOSTextRegression() {
>         Form f = new Form();
>         f.setLayout(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));
>         
>         Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
>         c.setScrollableY(true);
>         Container btnsContainer = new Container(new 
> BoxLayout(BoxLayout.Y_AXIS));
>         
>         Label frmIco = new Label();
>         FontImage.setMaterialIcon(frmIco, FontImage.MATERIAL_INPUT, 15);
>         //frmIco.setIcon(createFormIcon(frmIco, FontImage.MATERIAL_INPUT, 
> 15));
>         Container iconCont = new Container(new FlowLayout(CENTER));
>         iconCont.add(frmIco);
>         
>         c.add(iconCont);
>         
>         Container codeContainer = new Container(new 
> BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER));    
>         TextField code = new TextField("", "code_hnt");    
>             
>         codeContainer.add(BorderLayout.CENTER, code);
>         Button history = new Button();
>         FontImage.setMaterialIcon(history, FontImage.MATERIAL_HISTORY);
>         
>         codeContainer.add(BorderLayout.EAST, history);
>                 
>         c.add(codeContainer);
>
>         f.addComponent(BorderLayout.CENTER, c);
>         f.show();
>     }
>
> If you can modify this test case to reproduce the behaviour, I can take 
> another look.
>
> Steve
>
> On Sun, Oct 29, 2017 at 10:04 PM, Shai Almog <[email protected] 
> <javascript:>> wrote:
>
>> I don't see any commit from the past week that could be suspect: 
>> https://github.com/codenameone/CodenameOne/commits/master
>> Is this only on this specific text field or is there a wider impact? 
>> Is this related to the border layout center behavior for the text field?
>>
>> -- 
>> 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] 
>> <javascript:>.
>> 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/437164c5-7d2f-419d-afbc-1ffafa83a789%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/437164c5-7d2f-419d-afbc-1ffafa83a789%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> 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].
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/abafeb03-661f-4c82-9789-8d3c868e1c68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to