Hi ,
I tested designer script with simple layout have 3 objects.
-Panel_Parent (with default properties) is the first panel
-Panel_Child (with default properties) is in the Panel_Parent
-Label1 (with default properties) is in the Panel_Child
The variants is 320 x 480 ,scale = 1 (160 dpi )
Please check the first attached image.
Then I ran script:
I expect the Label1 will be width 100% in the Panel_Child but the width oversize than Panel_Child .
Please check the second attached image
Is this how it work or something wrong?
Best Regards,
pmt
I tested designer script with simple layout have 3 objects.
-Panel_Parent (with default properties) is the first panel
-Panel_Child (with default properties) is in the Panel_Parent
-Label1 (with default properties) is in the Panel_Child
The variants is 320 x 480 ,scale = 1 (160 dpi )
Please check the first attached image.
Then I ran script:
B4X:
'All variants script
'AutoScaleAll
Panel_Parent.SetLeftAndRight(0,100%x)
Panel_Child.SetLeftAndRight(20,50%x)
Label1.SetLeftAndRight(0,100%x)
I expect the Label1 will be width 100% in the Panel_Child but the width oversize than Panel_Child .
Please check the second attached image
Is this how it work or something wrong?
Best Regards,
pmt