Re: layout question
Re: layout question
- Subject: Re: layout question
- From: Quincey Morris <email@hidden>
- Date: Sun, 03 Apr 2011 09:03:05 -0700
On Apr 3, 2011, at 03:16, Christiaan Hofman wrote:
> In that case you simply embed everything inside another big view that exactly contains the two views.
Yep, I was mostly just pointing out you need to take care with both inner *and* outer edges. Tracking down mysteriously drifting UI elements is one of the things I hate most. :)
> However, can we be sure that this trick works? Wouldn't rounding errors slowly mess things up, one pixel at a time?
That's the question that got me interested to start with, but I think I've convinced myself rounding errors don't affect this case: NSMaxX (leftRect) == NSMinX (rightRect), so the calculations should come out the same, unless the autoresize code does something unexpected like 'round (NSWidth (leftRect))' but 'floor (NSMinX (rightRect))'.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden