Re: IB snap guides off by 1 pixel?
Re: IB snap guides off by 1 pixel?
- Subject: Re: IB snap guides off by 1 pixel?
- From: Alastair Houghton <email@hidden>
- Date: Fri, 23 Nov 2007 10:31:36 +0000
On 22 Nov 2007, at 19:46, Rick Mann wrote:
Why does it always seem that IB's guides are off by one pixel when
snapping to the enclosing view?
For example, make a window (Cocoa or Carbon), and put a scroll view
inside it, then drag the corners to grow the view to be the same
size as the enclosing window. Then run it. You'll notice that the
scroll bars have a little gap between them and the grow box. I
always have to get in there and expand the view by an extra pixel to
make it look right.
Is this a bug in IB, or am I doing something wrong?
In the specific case you mention, that of a scroll view, I think the
guides are correct, but that you need to turn off the scroll view's
border in order to make it look right. Of course, there are occasions
when you want the top border but not the bottom, left or right
borders, in which case it's rather less clear-cut.
And there are certainly other cases where a one pixel overlap ends up
being the easiest/best way to achieve a good-looking layout. For
instance, when placing square or gradient buttons adjacent to one
another in a grid (e.g. for a tool palette).
It might be better if controls that draw a border could be configured
to draw only particular sides of their respective borders.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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