Re: push button bounds are bigger than I'd expected...
Re: push button bounds are bigger than I'd expected...
- Subject: Re: push button bounds are bigger than I'd expected...
- From: Lee Ann Rucker <email@hidden>
- Date: Thu, 06 Mar 2014 14:54:54 -0800
On Mar 6, 2014, at 2:37 PM, Sean McBride wrote:
> Hi all,
>
> In Interface Builder, if I turn on Editor > Canvas > Show Bounds Rectangles then it shows blue rectangles representing views' bounds rectangles (I suppose). I notice for push buttons that this blue rectangle is not where I expect it, it's not tight around the visual appearance of the push button, but outset by several pixels. Is that normal? Why is this so?
It's space for the focus ring. That's why Autolayout talks about alignment rectangles instead of frames:
https://developer.apple.com/library/ios/documentation/userexperience/conceptual/AutolayoutPG/ImplementingView/ImplementingView.html#//apple_ref/doc/uid/TP40010853-CH16-SW4
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden