rtek1000 Active Member Licensed User Longtime User Jul 28, 2017 #1 I am converting the example of graphics done in tabpanel, but I am not finding the automatic height of free space Example: https://www.b4x.com/android/forum/threads/charts-framework.34710/#content The example works with FXML layout and I'm trying to use the current BJL layout The new code works, but the size of the height is passing a little of the visible area If I subtract a small value from the height, the size is within the visible area: Code: Copy Pane1.SetSize(TabPane1.Width, TabPane1.Height - 50) I tried to use the value of "PrefHeight", but the value is the same as "Height" How can I know the height value without counting the tabs part? Attachments B4J_Chat2.zip B4J_Chat2.zip 10.1 KB · Views: 559
I am converting the example of graphics done in tabpanel, but I am not finding the automatic height of free space Example: https://www.b4x.com/android/forum/threads/charts-framework.34710/#content The example works with FXML layout and I'm trying to use the current BJL layout The new code works, but the size of the height is passing a little of the visible area If I subtract a small value from the height, the size is within the visible area: Code: Copy Pane1.SetSize(TabPane1.Width, TabPane1.Height - 50) I tried to use the value of "PrefHeight", but the value is the same as "Height" How can I know the height value without counting the tabs part?
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2017 #2 Always create the layouts with the designer. 1. Call TabPane.LoadLayout to add tabs. 2. Use anchors to fill the available space. Upvote 0
Always create the layouts with the designer. 1. Call TabPane.LoadLayout to add tabs. 2. Use anchors to fill the available space.