Control doesn't stay centered?
Control doesn't stay centered?
- Subject: Control doesn't stay centered?
- From: Peter Duniho <email@hidden>
- Date: Sun, 5 Aug 2007 16:52:21 -0700
This is really a two-parter, I guess, depending on the answer to the
first part.
The first question has to do with a control not staying centered in
my window, even though I've done what I _thought_ should ensure it
stays centered in the window. That is, in Interface Builder, I've
dragged the item (an NSTextField) onto my window, used the alignment
tools to center it, and then in the "Size" properties, enabled the
exterior springs on all four sides of the control proxy in the
Inspector.
Most of the time, this does in fact do what I expect it to do. As I
resize the window, the NSTextField instance remains centered.
However, if I resize the window _and_ the window size winds up
smaller than the NSTextField instance, the centering is lost.
Specifically, if I resize the window so that its width is less than
than the NSTextField's width, obscuring part of the NSTextField, then
if I drag the window fast enough to make it wider again, the
NSTextField winds up stuck against the right side of the window,
entirely in view but not centered.
I can fix it by dragging the window size smaller again and then
larger, but slowly enough. Then the NSTextField remains centered as
I expect.
Question #1: am I just missing some setting in IB that controls this
behavior? Or is this a bug?
Question #2: if it is a bug, is there any way for me to check whether
it's a known bug before reporting it? I looked at the bug reporting
web site, but didn't find anything to let me search other bugs other
people have reported. Assuming this is a bug, it seems to incredibly
easy to reproduce and so incredibly annoying, it's hard to imagine it
hasn't already been reported. So I don't want to waste anyone's time
reporting it again. But because it's so easy to reproduce and so
annoying, I'd also hate to fail to report it when I should have.
What's the protocol on that sort of thing? Should I just report it
and be done with it? Or is there some due-diligence I can do to
avoid adding to the pile of work someone already has?
Thanks,
Pete
_______________________________________________
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