PDA

View Full Version : Positioning behaviour



Xarxus
November 12th, 2022, 11:10
I've some problem with positioning. I noticed that using a positioning relative to another object causes the attribution of one of the dimensions (height or width) of the control that is going to be positioned. For example, if I indicate below, the width of the control corresponds to that of the control above. So I tried the belowleft, which seems to me not to behave like that. It's true?

However when I try to use it to stack checkboxes (button_checkbox defined in CoreRPG) the control is simply not visible, I can't figure out where he put it.

Xarxus
November 12th, 2022, 15:03
Gosh, found the problem.
The CoreRPG version does not define a height, so if I use belowleft I have to declare it explicitly.

Sigh

damned
November 13th, 2022, 07:40
https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644483/Ruleset+-+Interfaces+Windows+Panels+Widgets#Anchoring

Xarxus
November 17th, 2022, 23:08
Ty damned!
I really appreciate your (all of you) patience with me.

Trenloe
November 17th, 2022, 23:17
Gosh, found the problem.
The CoreRPG version does not define a height, so if I use belowleft I have to declare it explicitly.
Regarding anchoring - referring to the diagram in the link @damned provided we can see that belowleft inherits the top and left positioning but it doesn't inherit width or height, so if the base template doesn't have width or height specifically defined you'll need to include it in the definitions of controls based on the template if the anchoring used doesn't inherit width or height.