From ce9a0962e6515c91d2da2486dda214279b698456 Mon Sep 17 00:00:00 2001 From: simonb Date: Sun, 26 Mar 2006 04:07:14 +0000 Subject: forgot to update rendering when orientation changes --- src/FbWinFrame.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 160bb2b..f93e9f4 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -413,6 +413,7 @@ void FbWinFrame::alignTabs() { applyTabContainer(); } + FbTk::Orientation orig_orient = m_tab_container.orientation(); int tabx = 0, taby = 0; switch (m_screen.getTabPlacement()) { case TOPLEFT: @@ -457,6 +458,12 @@ void FbWinFrame::alignTabs() { break; } + if (m_tab_container.orientation() != orig_orient) { + renderTabContainer(); + applyTabContainer(); + m_tab_container.clear(); + } + m_tab_container.move(tabx, taby); } -- cgit v0.11.2