Re: enlarging an NSScrollView
Re: enlarging an NSScrollView
- Subject: Re: enlarging an NSScrollView
- From: arekkusu <email@hidden>
- Date: Fri, 20 Jun 2003 14:00:18 -0700
Followup on my message, in case it appears that it works as expected:
After much ripping apart of code and building of an isolated project, I
see that the problem occurs when:
a) the scrollview is in the bottom pane of an NSSplitView.
b) the scrollbar is less than 15 pixels away from the window edge.
I see several other questions on this list about bugs with splitview
resizing (and no answers.)
I am at a total failure to comprehend what b) has anything to do with
it working or not. But it is true. If I inset my splitview 15 pixels
then it works as expected. But put it 14 pixels or less from the window
edge (I want it 0 pixels, to simulate natural document scrollbars) and
the scrollbar is not drawn when the scrollview frame is enlarged.
What gives?!
On Friday, June 20, 2003, at 02:35 AM, arekkusu wrote:
>
Can somebody please explain why:
>
>
IBOutlet NSScrollView *scroll;
>
NSSize size = [scroll frame].size;
>
size.height -= 20;
>
[scroll setFrameSize: size];
>
>
will correctly redraw the vertical scrollbar at the smaller size, but:
>
>
IBOutlet NSScrollView *scroll;
>
NSSize size = [scroll frame].size;
>
size.height += 20;
>
[scroll setFrameSize: size];
>
>
will leave a big gaping hole at the bottom of the scrollbar? Why is
>
the NSScroller not send the same recalc/redraw message in both cases?
>
>
>
I am trying to un-collapse my NSScrollView in an NSSplitView, and
>
nothing I do fixes the initial scrollbar display. It fixes itself as
>
soon as I resize the window by one pixel.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.