• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Controls disappearing from window during resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controls disappearing from window during resize


  • Subject: Re: Controls disappearing from window during resize
  • From: Eric Gorr <email@hidden>
  • Date: Thu, 23 Oct 2008 12:30:14 -0400


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@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


  • Follow-Ups:
    • Re: Controls disappearing from window during resize
      • From: Andy Lee <email@hidden>
References: 
 >Controls disappearing from window during resize (From: Eric Gorr <email@hidden>)
 >Re: Controls disappearing from window during resize (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: WebView: Open new windows in default browser
  • Next by Date: Re: CGPoint wrapper?
  • Previous by thread: Re: Controls disappearing from window during resize
  • Next by thread: Re: Controls disappearing from window during resize
  • Index(es):
    • Date
    • Thread