diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index 0674e53bb..d41e5b095 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -76,7 +76,6 @@ extern Keys whiteKeys[]; // defined in piano_widget.cpp // some constants... -const int INITIAL_PIANOROLL_WIDTH = 840; const int INITIAL_PIANOROLL_HEIGHT = 480; const int SCROLLBAR_SIZE = 16; @@ -600,13 +599,13 @@ pianoRoll::pianoRoll() : if( engine::mainWindow()->workspace() ) { engine::mainWindow()->workspace()->addSubWindow( this ); - parentWidget()->resize( INITIAL_PIANOROLL_WIDTH, + parentWidget()->resize( tb_layout->minimumSize().width(), INITIAL_PIANOROLL_HEIGHT ); parentWidget()->hide(); } else { - resize( INITIAL_PIANOROLL_WIDTH, INITIAL_PIANOROLL_HEIGHT ); + resize( tb_layout->minimumSize().width(), INITIAL_PIANOROLL_HEIGHT ); hide(); }