fix for #405 . fixes bad placement of Automation_editor and piano_roll windows on initial opening.

This commit is contained in:
mikobuntu
2014-03-04 22:58:33 +00:00
parent fcf5c054ac
commit 5f9a202d42
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
/*
parent/*
* AutomationEditor.cpp - implementation of AutomationEditor which is used for
* actual setting of dynamic values
*
@@ -439,6 +439,7 @@ AutomationEditor::AutomationEditor() :
{
engine::mainWindow()->workspace()->addSubWindow( this );
parentWidget()->resize( INITIAL_WIDTH, INITIAL_HEIGHT );
parentWidget()->move( 5, 5 );
parentWidget()->hide();
}
else

View File

@@ -626,6 +626,8 @@ pianoRoll::pianoRoll() :
parentWidget()->setMinimumSize( tb_layout->minimumSize().width()+10, 200 );
parentWidget()->resize( tb_layout->minimumSize().width()+10,
INITIAL_PIANOROLL_HEIGHT );
parentWidget()->move( 5, 5 );
parentWidget()->hide();
}
else