diff options
author | David Robillard <d@drobilla.net> | 2006-10-16 05:15:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-16 05:15:03 +0000 |
commit | 64a5451df548d89c64f3248f2c2d8e27f60acfb2 (patch) | |
tree | 5be8ff7e55e1cf77f1b5b93b7e7c50e8f4a6a450 /src/Patchage.cpp | |
parent | c44ae9cd6a176c18655816ab6a1692a2fca65816 (diff) | |
download | patchage-64a5451df548d89c64f3248f2c2d8e27f60acfb2.tar.gz patchage-64a5451df548d89c64f3248f2c2d8e27f60acfb2.tar.bz2 patchage-64a5451df548d89c64f3248f2c2d8e27f60acfb2.zip |
ExpanderPane fix.
git-svn-id: http://svn.drobilla.net/lad/patchage@179 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 4c9d843..9ec444b 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -414,16 +414,21 @@ Patchage::on_pane_position_changed() int new_position = m_main_paned->get_position(); if (m_pane_closed && new_position < max_pane_position()) { + // Auto open m_user_pane_position = new_position; m_messages_expander->set_expanded(true); m_pane_closed = false; m_menu_view_messages->set_active(true); } else if (new_position >= max_pane_position()) { + // Auto close m_pane_closed = true; + m_messages_expander->set_expanded(false); if (new_position > max_pane_position()) m_main_paned->set_position(max_pane_position()); // ... here m_menu_view_messages->set_active(false); + + m_user_pane_position = max_pane_position() - m_main_window->get_height()/8; } m_update_pane_position = true; |