Mixer: Fix resize issues with JACK module connection display list.

This commit is contained in:
Jonathan Moore Liles 2013-04-29 23:39:38 -07:00
parent ec8bfcba63
commit ea9d7b2420
2 changed files with 58 additions and 43 deletions

@ -1 +1 @@
Subproject commit ed50ecc551d5e490f4acb1ec673c9e8f43e23fb0
Subproject commit 8cb721a3547f0301d03d9ad5b7f5f771e899a22c

View File

@ -93,6 +93,14 @@ JACK_Module::JACK_Module ( bool log )
}
{ Fl_Scalepack *o = new Fl_Scalepack( x() + Fl::box_dx(box()),
y() + Fl::box_dy(box()),
w() - Fl::box_dw(box()),
h() - Fl::box_dh(box()) );
o->type( Fl_Pack::VERTICAL );
o->spacing(0);
{ Fl_Scalepack *o = new Fl_Scalepack( x() + Fl::box_dx(box()),
y() + Fl::box_dy(box()),
w(),
@ -134,18 +142,21 @@ JACK_Module::JACK_Module ( bool log )
}
o->end();
resizable(o);
}
{
Fl_Browser *o = connection_display = new Fl_Browser( x() + Fl::box_dx(box()), y() + 25, w() - Fl::box_dw(box()), 300 );
Fl_Browser *o = connection_display = new Fl_Browser( 0, 0, w(), h() );
o->textsize( 11 );
o->textcolor( FL_LIGHT3 );
o->textfont( FL_COURIER );
o->box( FL_FLAT_BOX );
o->color( fl_color_add_alpha( fl_rgb_color( 10, 10, 10 ), 25 ));
}
Fl_Group::current()->resizable(o);
}
o->end();
resizable(o);
}
end();
}
@ -277,7 +288,11 @@ JACK_Module::update_connection_status ( void )
n++;
}
h( 25 + ( n * 13 ) );
/* limit number of lines displayed */
if ( n > 15 )
n = 15;
size( w(), 26 + ( n * ( connection_display->incr_height() ) ) );
parent()->parent()->redraw();
}