i found the mistake in my code. You have to set the vertical and 
horizontalalignment otherwise is the alignment zero.


 MapLayout.setHorizontalAlignment(Lbl1 , 0.5f);
 MapLayout.setVerticalAlignment(Lbl1 , 1f);

Second i changed  in the clsss Maplayout 
 public void layoutContainer the basic value to the values 0.5f and 1f as 
in the mapcontainer class

    Float h = (Float)current.getClientProperty(HORIZONTAL_ALIGNMENT);
                if(h == null) {
                    h = 0.5f;
                    
                }
                
                
                Float v = 
(Float)current.getClientProperty(VERTICAL_ALIGNMENT);
                if(v == null) {
                    v = 1f;
                }


And also in prIvate void nstallmarekrfor

 Float h = (Float)c.getClientProperty(HORIZONTAL_ALIGNMENT);
            if(h == null) {
               h = 0.5f;
            }
            
                 
            Float v = (Float)c.getClientProperty(VERTICAL_ALIGNMENT);
            if(v == null) {
                v = 1f;
            }

Op vrijdag 15 november 2019 04:01:30 UTC+1 schreef Shai Almog:
>
> OK, assuming you're up to date with the latest cn1lib I suggest you file 
> an issue. There might be a regression with anchor positioning.
> You can file an issue here: 
> https://github.com/codenameone/CodenameOne/issues/
>
>

-- 
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/c5dee24a-0a26-453f-a364-cfef8603a5a9%40googlegroups.com.

Reply via email to