AutoSizing a Sheet depend on its Content
AutoSizing a Sheet depend on its Content
- Subject: AutoSizing a Sheet depend on its Content
- From: Jake <email@hidden>
- Date: Mon, 17 Dec 2001 07:33:15 -0500 (EST)
I have a sheet that contains several text views. The content of the text
view are dynamic. The sheet is resizable. I notice that sometimes when
the content of the textview is larger than the default size, it gets cut
off by the view. I was able to use the resize box to drag the sheet to see
the rest of the text which auto adjusted because of the inner springs of
the text view. However, once the sheet has been resized, it appears that
the sheet can no longer be shrinked to the original size becaused the new
text view content enforced the minsize of the sheet. so my question is, is
there a way to autosize a sheet on openning so that all of it's content
gets reveal with the correct size? I tried
[mySheet zoom:self]; // goto max
[mySheet zoom:self]; // back to min
in hoping to achieve this effect, but obviously it isn't doing so. Is
there an easy way to make this happen without resorting to adjusting the
contentsize of the sheet by calculating and resizing the text view
manually?
thanks.
Jake