You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm confused. I couldn't find information on how I can make a “Div container from HTML” with a percentage size relative to the parent container and its indentation(except margins).
Describe the solution you'd like
i need a container without graphics with margins, and padding along with passing its dimensions as a percentage of the parent container's dimensions, taking into account margins, and padding.
add that if for example margins[“up”] == 0 then it should not be written (margins={'right': 5, 'top': 5, 'bottom': 5}) and if opposite margins are the same then it should be written for example (margins={'left': 5, 'top': 5})).
record relative sizes as in html for example: 50vh is 1% of the height of the parent area (same with vw) and let's say 30h is 30% of the whole height of the manger (letters are not important the main thing is the meaning).
add possibility to write dynamic formulas like “(10w, 10h, 50wv+70px, 20hv-20px)”.
Describe alternatives you've considered
And it would be nice to have ContainerW and ContainerH - a container with “n” number of evenly spaced containers in length inside it.
Additional context
When I made super simple interface manually without pygame gui I wrote these “fractions” myself window size * by %+ item position left/top. When I started using pygame-gui, I did all the same things.
Please tell me if there are any of the listed functions I would try to do it myself but I don't know if there is this functionality at all maybe I didn't look in the documentation properly.
Sorry for the mistakes in context, I used a translator.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm confused. I couldn't find information on how I can make a “Div container from HTML” with a percentage size relative to the parent container and its indentation(except margins).
Describe the solution you'd like
Describe alternatives you've considered
And it would be nice to have ContainerW and ContainerH - a container with “n” number of evenly spaced containers in length inside it.
Additional context
When I made super simple interface manually without pygame gui I wrote these “fractions” myself window size * by %+ item position left/top. When I started using pygame-gui, I did all the same things.
Please tell me if there are any of the listed functions I would try to do it myself but I don't know if there is this functionality at all maybe I didn't look in the documentation properly.
Sorry for the mistakes in context, I used a translator.
The text was updated successfully, but these errors were encountered: