Re: Autolayoout on scaled views

2014-04-04 Thread Antonio Nunes
I’ve arrived at a solution that appears to work, although there is still an element I do not understand. First I corrected some calculation errors, so that the view sizes/centres/margins are now always calculated correctly, but that’s not the point. The issue was that after zooming the container

Autolayoout on scaled views

2014-04-04 Thread Antonio Nunes
Hi have a view that contains another view. The containerview (parent) can be scaled. The scaling is done by settings scaleUnitSquareToSize to the appropriate value. I’m trying to keep the contained view (subview, or content view) centred in the containerview. When the scale of the containerview