cklester Well-Known Member Licensed User Dec 3, 2021 #1 See the attached B4J (B4XPages) project. The buttons are not staying anchored as set in their properties. I know I can probably resolve this with additional scripting, but that defeats the point of having anchors. Is this expected behavior? Am I doing it wrong? Attachments anchor_sample.zip 9.1 KB · Views: 162
See the attached B4J (B4XPages) project. The buttons are not staying anchored as set in their properties. I know I can probably resolve this with additional scripting, but that defeats the point of having anchors. Is this expected behavior? Am I doing it wrong?
LucaMs Expert Licensed User Longtime User Dec 3, 2021 #2 Erel: "Note that the anchors effect ends right before the designer script starts." https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/post-405609 In fact, if you comment the lines in the script, the anchoring works.
Erel: "Note that the anchors effect ends right before the designer script starts." https://www.b4x.com/android/forum/threads/b4x-anchors-demonstrated.64112/post-405609 In fact, if you comment the lines in the script, the anchoring works.
cklester Well-Known Member Licensed User Dec 3, 2021 #3 LucaMs said: In fact, if you comment the lines in the script, the anchoring works. Click to expand... But then the panes aren't spaced properly. (They should each take up about 50% of the available horizontal space.)
LucaMs said: In fact, if you comment the lines in the script, the anchoring works. Click to expand... But then the panes aren't spaced properly. (They should each take up about 50% of the available horizontal space.)
LucaMs Expert Licensed User Longtime User Dec 3, 2021 #4 cklester said: But then the panes aren't spaced properly. (They should each take up about 50% of the available horizontal space.) Click to expand... You have to handle everything in the B4XPage_Resize event.
cklester said: But then the panes aren't spaced properly. (They should each take up about 50% of the available horizontal space.) Click to expand... You have to handle everything in the B4XPage_Resize event.