From 5662ef9d447fde99daedfdb0696aed1c6186577a Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 2 Feb 2012 20:24:30 +0100 Subject: [PATCH] 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. --- src/gui/piano_roll.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index d41e5b0954..27c54bffdc 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -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(); }