Introduction
Here is an example of how a panel’s controls behave when different Fix properties are toggled.
In this example, we have a panel that contains a textbox field. If we open the properties of the textbox, we can observe that four Fix properties can be found: Fix Bottom, Fix Left, Fix Right and Fix Left.
By default, the Fix properties are toggled for Fix Left and Fix Top. Loading this function in the browser, we can observe the same configuration.
If we toggle Fix Right and Fix Bottom instead of Fix Left and Fix Top, the textbox will adjust to the lower right side of the window.
Note: It's important to note that while almost all controls have fixed positioning, not all of them are resizable. Here's a list of which controls are resizable:
html {
height: 100% !important;
width: 100% !important;
}
body{
height: 100% ! important;
width: 100% !important;
}
body form {
height: 100% !important;
width: 100% !important;
}
.WebMessages_Div1{
height: 100% !important;
width: 100% !important;
}
.WebMessages_Div2{
height: 100% !important;
width: 100% !important;
}
Note: Always make sure to include the correct classes in the stylesheet. If the containers don't have a class specified, you can add one.
The Tab Control consists of two parts: One is a PVTab Bean Control that helps the user switch between tabs. The other is a ChildSiteP where the functions are loaded. When making changes in the Panel Designer, it is suggested to keep both controls close to each other to avoid confusion. It is also advised to keep some space between the PVTab Bean Control and other controls (In this case, the Grid) to make sure they do not overlap.
When it comes to positioning, the PVTab Bean Control is the one that decides the position of both controls. ChildSiteP is only responsible for the size of the tabs.
Elements on the same axis
When you design a screen in plex that will use fix position, the first thing you need to think in which direction you want the elements to move. Then you need to identify the bigger element in the screen. The bigger element is the one who will determine the properties of the other elements.
As you can see in this example the bigger element is the blue textbox, so this textbox will have both properties (Fix left and fix right). The green ones just need the fix left and the red ones just need fix right.
What you see on the panel of plex is not always the same as it is in reality. If you want to be precise with the spaces between the elements in the panel you need to look at the properties panel.
Here is an example of a child site and panel: As you can see the position property of the child container is 404 and his height is 372.
The panel height in this case is 825.
The formula to calculate the margin bottom is: Bottom Margin = Panel Height - (Control.PositionY + Control.Height).
In this example the Bottom Margin would be: 825 - (404+372) = 49.
To solve this problem, we make more smaller the panel height (795), So now the margin bottom is 19. Doesn’t matter if you see that some elements are not visible in plex, then you will see them ok in web.
Note: The margin bottom formula most be used with the nearest element to the bottom edge
Fix position not being responsive as it should.