mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-18 22:18:27 -04:00
PianoRoll: fix minimum and initial width
The PR window always had a too small initial size. Fix this by setting a proper minimum width and set initial width to this value as well.
This commit is contained in:
@@ -599,7 +599,8 @@ pianoRoll::pianoRoll() :
|
||||
if( engine::mainWindow()->workspace() )
|
||||
{
|
||||
engine::mainWindow()->workspace()->addSubWindow( this );
|
||||
parentWidget()->resize( tb_layout->minimumSize().width(),
|
||||
parentWidget()->setMinimumWidth( tb_layout->minimumSize().width()+10 );
|
||||
parentWidget()->resize( tb_layout->minimumSize().width()+10,
|
||||
INITIAL_PIANOROLL_HEIGHT );
|
||||
parentWidget()->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user