Re: Controls disappearing from window during resize
Re: Controls disappearing from window during resize
- Subject: Re: Controls disappearing from window during resize
- From: Andy Lee <email@hidden>
- Date: Thu, 23 Oct 2008 11:35:37 -0400
On Oct 23, 2008, at 11:17 AM, Eric Gorr wrote:
Once the window appears, resize the window to the smallest height
you can and then resize back to the original height.
What you will see happen is the 'Label' disappear.
You have the text field set to grow and shrink in proportion to its
superview. In the Size inspector, note the red double-ended
horizontal arrow inside the box. In the parlance of struts and
springs, that is a "spring." Click that spring to turn it off, and
also turn off the strut on the right side outside the box. In other
words, only have two struts turned on: the ones on the top and left.
This will give you a text field that maintains its size and its
position relative to the top left corner. If you look at the animated
preview you will see the consequence of each of these changes in real
time.
The reason the label disappears is that when you make the window
small, the text field's width scales to zero. When you expand the
window again, IB scales the width accordingly (as you specified) --
except now it's scaling zero, which always returns zero.
--Andy
_______________________________________________
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