Alessandro71 Well-Known Member Licensed User Longtime User Oct 31, 2021 #1 I'm using ASViewPager in a B4J project It looks like the resize handling is not working correctly Here is a sample project: the pager contains a single label with bottom-right anchor Try resizing the window by increasing its width, and the label won't follow the right border Attachments ViewPager.zip ViewPager.zip 11.7 KB · Views: 474
I'm using ASViewPager in a B4J project It looks like the resize handling is not working correctly Here is a sample project: the pager contains a single label with bottom-right anchor Try resizing the window by increasing its width, and the label won't follow the right border
Alexander Stolte Expert Licensed User Longtime User Oct 31, 2021 #2 You have to resize it manually in the Base_Resize event. Upvote 0
Alessandro71 Well-Known Member Licensed User Longtime User Oct 31, 2021 #3 Alexander Stolte said: You have to resize it manually in the Base_Resize event. Click to expand... do you mean something like that? B4X: Copy Private Sub B4XPage_Resize (Width As Int, Height As Int) ASViewPager1.Base_Resize(Width, Height) End Sub Upvote 0
Alexander Stolte said: You have to resize it manually in the Base_Resize event. Click to expand... do you mean something like that? B4X: Copy Private Sub B4XPage_Resize (Width As Int, Height As Int) ASViewPager1.Base_Resize(Width, Height) End Sub
Alexander Stolte Expert Licensed User Longtime User Oct 31, 2021 #4 yes, but maybe the label too. Upvote 0
Alessandro71 Well-Known Member Licensed User Longtime User Nov 1, 2021 #5 Alexander Stolte said: yes, but maybe the label too. Click to expand... as this was only a proof of concept, in a real case I should iterate on all the views inside the panel of the page and manually scale all of them? this is what the designer script does at LoadLayout: is there a way to force a script run? maybe @Erel can suggest a proper solution here. Upvote 0
Alexander Stolte said: yes, but maybe the label too. Click to expand... as this was only a proof of concept, in a real case I should iterate on all the views inside the panel of the page and manually scale all of them? this is what the designer script does at LoadLayout: is there a way to force a script run? maybe @Erel can suggest a proper solution here.