2 ms·
> as the native GUI does The native GUI does nothing. If you lay out something and resize the window to be smaller, your GUI will just get cropped, and there
by dheera 4y ago
> as the native GUI does
The native GUI does nothing.
If you lay out something and resize the window to be smaller, your GUI will just get cropped, and there will be buttons offscreen. That's not a good experience.
Also when you have, say, a chatroom where you have a huge box of scrolling content and then an entry area, you typically want the entry area to be constant height and the scrolling content to fill the remaining space, whereas there are other applications where you might want a percentage-based split. The native GUI doesn't know you want this. You have to somehow tell it that. CSS makes it super easy. Other toolkits make it very annoying to specify logic like this.
- ridiculous_fish 4y agoAll native GUI toolkits from the last three decades allow you to reflow elements in the way you describe. Both CSS and native toolkits make it simple to express how elements move and stretch in response to window resizing. Where CSS falls down is anything user-resizable. For example, a split view that collapses instead of cropping a text label. The CSS "resize" property is awful.