Timeline: Always resize tracks Fl_Pack.

This eliminates a bug were all tracks are invisible if the resized
window results in the tracks pack being shorter than its original
height.
This commit is contained in:
Jonathan Moore Liles 2010-01-17 11:38:15 -06:00
parent 2136a8e6d3
commit 74df856ebe
1 changed files with 2 additions and 0 deletions

View File

@ -886,6 +886,8 @@ Timeline::resize ( int X, int Y, int W, int H )
/* why is THIS necessary? */ /* why is THIS necessary? */
hscroll->resize( BX, BY + H - 18, hscroll->w(), 18 ); hscroll->resize( BX, BY + H - 18, hscroll->w(), 18 );
vscroll->size( vscroll->w(), H - 18 ); vscroll->size( vscroll->w(), H - 18 );
tracks->resize( BX, rulers->h(), W - vscroll->w(), H - vscroll->h() );
} }
/** draw ancillary cursors (not necessarily in the overlay plane) */ /** draw ancillary cursors (not necessarily in the overlay plane) */