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
There are a few possible approaches to the css layout chosen when implementing a resizing library.
Currently what is used is flex box with a flex-basis being set to the pixel width of the different box elements.
However it is also possible to do the following
Use grid layout and set grid-template-columns to be the pixel values of the different panes as fractional elements (e.g. grid-template-columns: 123fr 22fr;
Use block layout and manually set the width of the different elements
Question:
What would be the drawbacks and benefits of each approach, especially in terms of flexibility and performance?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear users of react-collapse-pane,
There are a few possible approaches to the css layout chosen when implementing a resizing library.
Currently what is used is flex box with a flex-basis being set to the pixel width of the different box elements.
However it is also possible to do the following
grid-template-columns
to be the pixel values of the different panes as fractional elements (e.g.grid-template-columns: 123fr 22fr;
Question:
What would be the drawbacks and benefits of each approach, especially in terms of flexibility and performance?
Beta Was this translation helpful? Give feedback.
All reactions