• 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
Stop a scrollview scrolling in one direction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stop a scrollview scrolling in one direction


  • Subject: Stop a scrollview scrolling in one direction
  • From: Roland King <email@hidden>
  • Date: Thu, 18 Dec 2014 17:32:16 +0800

I have an outline view which comes preconfigured with a scrollview, clipview and the outline view inside that. This project uses autolayout  in case that matters).

Currently as you resize the window in either direction, when it gets smaller than the contents of the outline view, in either axes, it clips and shows a scrollbar, like scrollviews .. do. That's the behavior I want in the vertical direction, but I'd like the scrollview to resist being compressed horizontally so you can't ever resize the window to the point you need a horizontal scroll.

I can throw in a fixed minimum width constraint on the scrollview or the window, but that seems to be a bad way to do things. I expected there would be a way to tell a scrollview only to be a scrollview in one direction and resist compression in another, but I can't find it. Is there one?
_______________________________________________

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


  • Prev by Date: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Next by Date: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Previous by thread: Re: Yosemite-like Toolbar: Segmented Controls, Buttons, Template Images?
  • Next by thread: Saving NSAttributedString to a File
  • Index(es):
    • Date
    • Thread