Timeline: Cleaner fix for resize behavior.

This commit is contained in:
Jonathan Moore Liles 2015-09-29 22:10:29 -07:00
parent 3e4c6e9a50
commit 97d149421f
1 changed files with 2 additions and 5 deletions

View File

@ -721,6 +721,7 @@ Timeline::Timeline ( int X, int Y, int W, int H, const char* L ) : BASE( X, Y, W
Fl_Group *o = new Fl_Group( X, rulers->y() + rulers->h(), W, ( H - rulers->h() ) - 50 ); Fl_Group *o = new Fl_Group( X, rulers->y() + rulers->h(), W, ( H - rulers->h() ) - 50 );
o->box(FL_FLAT_BOX); o->box(FL_FLAT_BOX);
o->clip_children(true); o->clip_children(true);
o->resizable(NULL);
{ {
_fpp = 8; _fpp = 8;
Fl_Pack *o = new Fl_Pack( X, rulers->y() + rulers->h(), W, 1 ); Fl_Pack *o = new Fl_Pack( X, rulers->y() + rulers->h(), W, 1 );
@ -1185,6 +1186,7 @@ Timeline::resize ( int X, int Y, int W, int H )
W, W,
tile->h() - panzoomer->h()); tile->h() - panzoomer->h());
tracks->resize( tracks->x(), tracks->y(), W, tracks->h() );
/* /\* rulers->resize( X, *\/ */ /* /\* rulers->resize( X, *\/ */
/* /\* rulers->y(), *\/ */ /* /\* rulers->y(), *\/ */
@ -1276,11 +1278,6 @@ Timeline::draw ( void )
// rdlock(); // rdlock();
/* Parent resizing obliterates the size and position of this widget... just force it.*/
tracks->resize(
track_window->x(), track_window->y() - (int)panzoomer->y_value(),
track_window->w(), pack_visible_height( tracks ));
int X, Y, W, H; int X, Y, W, H;
int bdx = 0; int bdx = 0;