I need to mention width/height in percentage.
is gravity will take in percentages?
I think it’s not like percentages it like flex.
percentages will consider from window
yes, gravity is not exactly percentage.
but you can easily mimic it.
check this
https://snippet.webix.com/111objqr
you just need to make sum of gravities in the same layout equal to 100.
That’s Fine we can divide the space of parent component using gravity.
Let’s say I have window I need to mention the width and height of that in percentages since few screens will have diff dimensions. can gravity work?
in case of window you need to use position
property in config.
https://snippet.webix.com/2kcu0fti
https://docs.webix.com/api__ui.window_position_config.html
state.maxHeight
and state.maxWidth
reflects DOM window height and width.
I did not find them in docs though
for sidemenu
widget use dedicated state
property
https://docs.webix.com/api__ui.sidemenu_state_config.html