Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scrollpane height

Status
Not open for further replies.

jefargrafx

Instructor
May 24, 2001
273
US
Hi,

I'm using a scroll pane to load a clip from the library that has server frames with in it. A stop() is on each frame. on the root time line I have serveral frame and each of this frames tells the scrollpane to go to frame with in the library clip. okay that all work fine.
However, each from in the libarary clip content content that is a different height and the pane does no resize based on this new height.

anyone run into this before?

jef
 
I want the scrollpane to re-adjust the scroll based on the height of the contents. Say the first frame is 600px when loaded into the scrollpane, and the scord frames content is 800px, the scrollpane only scrolls to 600px.

anyway to fix this?

reload the content???

wondering??

jef
 
So you want to adjust the scrollbars, not the height of the ScrollPane.

Then you need to force the ScrollPane to redraw itself.

Try:

ScrollPane.invalidate();

OR

ScrollPane.redraw(true);

OR

ScrollPane.setSize(ScrollPane.width, ScrollPane.height);

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top