Re: 2 questions-(drawer)
Re: 2 questions-(drawer)
- Subject: Re: 2 questions-(drawer)
- From: Douglas Davidson <email@hidden>
- Date: Tue, 12 Jun 2001 10:51:47 -0700
On Tuesday, June 12, 2001, at 06:52 AM, Eric Peyton wrote:
I believe the drawer size is controlled by the height (or width) of
it's containing window. I would imagine with a lot of work you could
override this, but it wouldn't necessarily be easy.
Yes, the height of a vertical drawer is controlled by its parent
window's height, but that's not the only factor--you can set the leading
and/or trailing offset yourself to make your drawer smaller than its
parent. If you want a fixed-height drawer, you can
- in the parent window's delegate, implement windowDidResize: and in
that method set the drawer's trailing offset based on the parent
window's frame size (take the height and subtract some fixed constant);
- in the parent window's delegate, implement windowWillResize:toSize: to
constrain the parent window's height so that there is sufficient room
for the drawer.
Douglas Davidson