Nickelgrass Active Member Licensed User Longtime User Jan 11, 2023 #1 Hello, I made a layout in B4I designer and it looks good in the designer and also the device bridge. However if I load the layout in the actual app all the views are crammed to the left. It seems the 100%x is not applied. What reason could this have?
Hello, I made a layout in B4I designer and it looks good in the designer and also the device bridge. However if I load the layout in the actual app all the views are crammed to the left. It seems the 100%x is not applied. What reason could this have?
Erel B4X founder Staff member Licensed User Longtime User Jan 12, 2023 #2 1. Make sure to set the anchors correctly. 2. Never use %x / %y outside of the Resize event or the designer script. Upvote 0
1. Make sure to set the anchors correctly. 2. Never use %x / %y outside of the Resize event or the designer script.
Nickelgrass Active Member Licensed User Longtime User Jan 12, 2023 #3 Thanks for the reply. But I have set the anchors and I am not using %x anywhere else than the designer script. Upvote 0
Thanks for the reply. But I have set the anchors and I am not using %x anywhere else than the designer script.
Nickelgrass Active Member Licensed User Longtime User Jan 12, 2023 #4 Seems the ugly workaround is to set settings_scr.Panel.Width = settings_scr.Width after loading the layout. Upvote 0
Seems the ugly workaround is to set settings_scr.Panel.Width = settings_scr.Width after loading the layout.
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2023 #5 Upload a small project with the layout. Upvote 0
Nickelgrass Active Member Licensed User Longtime User Jan 18, 2023 #6 Seems to work now suddenly. I think I cleaned the project in between and then it worked. No idea why or what changed. Upvote 0
Seems to work now suddenly. I think I cleaned the project in between and then it worked. No idea why or what changed.