Re: Text Layout problems
Re: Text Layout problems
- Subject: Re: Text Layout problems
- From: Douglas Davidson <email@hidden>
- Date: Mon, 6 Mar 2006 11:12:41 -0800
On Mar 6, 2006, at 11:03 AM, Ben Lachman wrote:
I looked at these values and the containerOrigin.y does indeed
change (to -10 in this case). The inset is 0,0 and never changes.
The rect return by [layoutManager
usedRectForTextContainer:textContainer] has an origin.y of 10. So
apparently the layout manager is being smart and figuring out that
it doesn't need that extra space and therefore resizing the text
view accordingly. However, I don't want it to do this (and I don't
particularly think this is very logical behavior) since I need an
inset only at the top (and left side, but that isn't autoresized)
of my text view and not the bottom.
The most obvious answer would be to override -[NSTextView
textContainerOrigin] to return a constant value (it's the text view
that does this calculation using information from the layout
manager). I believe that should work, but I haven't tested it.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden