Prevent track editor view's default size to be zero (#5453)

* Prevent track editor view's default size to be zero

Signed-off-by: chiyteng <chiyteng@amazon.com>

* minor rewording

Signed-off-by: chiyteng <chiyteng@amazon.com>
This commit is contained in:
chiyenteng
2021-11-09 12:40:56 -08:00
committed by GitHub
parent 897fd955e2
commit caf1c18fbe
@@ -257,6 +257,7 @@ BOOL CUiAnimViewDialog::OnInitDialog()
m_wndSplitter->addWidget(m_wndDopeSheet);
m_wndSplitter->setStretchFactor(0, 1);
m_wndSplitter->setStretchFactor(1, 10);
m_wndSplitter->setChildrenCollapsible(false);
l->addWidget(m_wndSplitter);
w->setLayout(l);
setCentralWidget(w);
@@ -283,6 +284,11 @@ BOOL CUiAnimViewDialog::OnInitDialog()
m_wndCurveEditorDock->setVisible(false);
m_wndCurveEditorDock->setEnabled(false);
// In order to prevent the track editor view from collapsing and becoming invisible, we use the
// minimum size of the curve editor for the track editor as well. Since both editors use the same
// view widget in the UI animation editor when not in 'Both' mode, the sizes can be identical.
m_wndDopeSheet->setMinimumSize(m_wndCurveEditor->minimumSizeHint());
InitSequences();
m_lazyInitDone = false;