views:

237

answers:

2

How does the layout support of Cappuccino work? For example the centering and the automatik resizing.

+2  A: 

Are you asking for an explanation on how to use the feature (one good place is this tutorial: http://cappuccino.org/learn/tutorials/automatic-layout/ ), or are you asking how it is implemented?

Francisco Ryan Tolmasky I
Implementation.
Richard Durr
+2  A: 

The autoresizing masks are more or less implemented in this method: http://github.com/280north/cappuccino/blob/master/AppKit/CPView.j#L987

On a more conceptual level, all views in Cappuccino are absolutely positioned. By not relying on the browser to lay things out, we always know exactly where everything is, and can make decisions accordingly.

Ross Boucher