On Oct 23, 2008, at 11:35 AM, Andy Lee wrote:

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.

Please try this yourself and then shrink the window to it's smallest height. The 'Label' text will disappear.

If I understood you correctly, this should not happen.

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.

The problem occurs not when I change the width of the window. The problem occurs when I change the height.

When resizing the window, feel free to make the width wider as the height becomes as small as you can make it.





_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to