4 ms·
Compiling to CSS, very interesting strategy. Will definitely try it. Porting my layout manager to the browser is on my to do list. I created DesignGridLayout f
by specialist 13y ago
Compiling to CSS, very interesting strategy. Will definitely try it. Porting my layout manager to the browser is on my to do list.
I created DesignGridLayout for creating visually correct UIs using canonical grids (a la Mullet and Sanno, many others). You specify rows and components. DGL figures out columns, spacing, alignment, baselines, etc.
https://designgridlayout.java.net https://designgridlayout.java.net
[Shout out to Jean-François Poilprêt, who's now the project owner and greatly extended the functionality.]
I used to be very bullish on constraint solvers for UI, Cassowary included. I found that creating visually correct forms continued to be very difficult. Partially because the UI components do not have the built-in smarts, such as anchors for text baselines.
So I decided that capturing (encoding) the heuristics of canonical grids was best implemented (at the time) with explicit imperative code.
Constraint solvers still have great potential for document layout, a la responsive designs.
I have no doubt that a future bottom up redo of a UI component framework (UIMS) will embrace constraints for both document and form layout.
- kenferry 13y ago> I have no doubt that a future bottom up redo of a UI component framework (UIMS) will embrace constraints for both document and form layout. Welcome to the future! Cocoa's new(ish) layout system, Auto Layout, is constraint based. > Partially because the UI components do not have the built-in smarts, such as anchors for text baselines. In Cocoa, you can constrain two views to align by baseline, and each view handles what "baseline" means for itself. Built in views (labels, buttons, etc.) behave as you'd expect.
- specialist 13y agoThanks. I should look at Auto Layout. My hobby iOS project (a few years back) made me want to stab myself.