Browse Source

Timeline: Cleaner fix for resize behavior.

tags/non-daw-v1.2.0
Jonathan Moore Liles 9 years ago
parent
commit
97d149421f
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      timeline/src/Timeline.C

+ 2
- 5
timeline/src/Timeline.C 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 );
o->box(FL_FLAT_BOX);
o->clip_children(true);
o->resizable(NULL);
{
_fpp = 8;
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,
tile->h() - panzoomer->h());

tracks->resize( tracks->x(), tracks->y(), W, tracks->h() );

/* /\* rulers->resize( X, *\/ */
/* /\* rulers->y(), *\/ */
@@ -1275,11 +1277,6 @@ Timeline::draw ( void )
THREAD_ASSERT( UI );

// 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;



Loading…
Cancel
Save