1
0
Эх сурвалжийг харах

NavigationPanel: refine stretch factor in split mode

Le Tan 6 жил өмнө
parent
commit
750f80c3ca

+ 1 - 1
src/vmainwindow.cpp

@@ -3516,7 +3516,7 @@ void VMainWindow::setupFileListSplitOut(bool p_enabled)
     m_fileList->setEnableSplitOut(p_enabled);
     if (p_enabled) {
         m_nbSplitter->setOrientation(Qt::Horizontal);
-        m_nbSplitter->setStretchFactor(0, 1);
+        m_nbSplitter->setStretchFactor(0, 0);
         m_nbSplitter->setStretchFactor(1, 1);
     } else {
         m_nbSplitter->setOrientation(Qt::Vertical);

+ 1 - 1
src/vtagexplorer.cpp

@@ -545,7 +545,7 @@ void VTagExplorer::setupFileListSplitOut(bool p_enabled)
     m_splitBtn->setChecked(p_enabled);
     if (p_enabled) {
         m_splitter->setOrientation(Qt::Horizontal);
-        m_splitter->setStretchFactor(0, 1);
+        m_splitter->setStretchFactor(0, 0);
         m_splitter->setStretchFactor(1, 1);
     } else {
         m_splitter->setOrientation(Qt::Vertical);