Bug? Pane.setLayoutAnimated ; Zero duration value bug

Cableguy

Expert
Licensed User
Longtime User
I've been struggling to properly re-dimensioning a pane and its child's only to find that setting Pane.PrefHeight or Pane.PrefWidth had no effect or not the effect I expected...
(In one case the layout simply didn't change, on another one, the Form itself changed instead of the pane)
So I thought... "Why not try SetLayoutAnimated, but with duration Zero?"
And so I did.... And the result was... nothing... the layout did not change! However, using one (1) as the duration DOES work!
 

stevel05

Expert
Licensed User
Longtime User
I've used it quite often with a duration of zero and haven't had the same experience. Do you have anchors set on the pane?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The layout will be resized automatically when the page is resized. You need to uncheck this option:

SS-2017-10-12_08.12.55.png


Or make the changes in the Page_Resize event.
 

Cableguy

Expert
Licensed User
Longtime User
But I'm not resizing the Form, only a few views inside it, no anchors defined!.
In my case, it works well if the duration is not zero!
 

Cableguy

Expert
Licensed User
Longtime User
The layout will be resized automatically when the page is resized. You need to uncheck this option:

SS-2017-10-12_08.12.55.png


Or make the changes in the Page_Resize event.

That seems to be it!
 
Top