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.



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!





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!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…