forgot to update rendering when orientation changes

This commit is contained in:
simonb 2006-03-26 04:07:14 +00:00
parent af74a22845
commit ce9a0962e6

View file

@ -413,6 +413,7 @@ void FbWinFrame::alignTabs() {
applyTabContainer(); applyTabContainer();
} }
FbTk::Orientation orig_orient = m_tab_container.orientation();
int tabx = 0, taby = 0; int tabx = 0, taby = 0;
switch (m_screen.getTabPlacement()) { switch (m_screen.getTabPlacement()) {
case TOPLEFT: case TOPLEFT:
@ -457,6 +458,12 @@ void FbWinFrame::alignTabs() {
break; break;
} }
if (m_tab_container.orientation() != orig_orient) {
renderTabContainer();
applyTabContainer();
m_tab_container.clear();
}
m_tab_container.move(tabx, taby); m_tab_container.move(tabx, taby);
} }