Bug? [solved] Different sizes of a Pane when resizing depending on the direction.

klaus

Expert
Licensed User
Longtime User
Hi Erel,
In the attached test ptogram there are on top of the form a pane with two buttons.

upload_2017-11-13_9-35-53.png


When moving from left to right or from roght to left the width of pneLabels.
The values of pneWidth are:
440 = pneLabels.Width
439 / 442 = btnRight.Left - btnLeft.Width)
But both values should be the same!

upload_2017-11-13_9-37-6.png


upload_2017-11-13_9-37-19.png


This program is the demo program for the question HERE.
B4X:
' TotalWidth = pneLabels.Width ' this doesn' work correctly
TotalWidth = btnRight.Left - btnLeft.Width
Using this, TotalWidth = pneLabels.Width, the program doesn't work correctly.
Using this, TotalWidth = btnRight.Left - btnLeft.Width, it works as expected!
 
Top