X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c1fa6f5245968866f56a26f4a73c543a2891195a..4913272f9cdead94a6d1470e51d6fb14946b50e0:/src/gtk/frame.cpp diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index 9d26447c67..801f14ac60 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -416,11 +416,22 @@ void wxFrame::GtkOnSize() ww = m_toolBarDetached ? wxPLACE_HOLDER : m_frameToolBar->m_width; hh = m_height - 2*m_miniEdge; - if (hh < 0) - hh = 0; client_area_x_offset += ww; } + else if( m_frameToolBar->GetWindowStyle() & wxTB_BOTTOM ) + { + xx = m_miniEdge; + yy = GetClientSize().y; +#if wxUSE_MENUS_NATIVE + yy += m_menuBarHeight; +#endif // wxUSE_MENU_NATIVE + m_frameToolBar->m_x = xx; + m_frameToolBar->m_y = yy; + ww = m_width - 2*m_miniEdge; + hh = m_toolBarDetached ? wxPLACE_HOLDER + : m_frameToolBar->m_height; + } else { ww = m_width - 2*m_miniEdge; @@ -430,6 +441,10 @@ void wxFrame::GtkOnSize() client_area_y_offset += hh; } + if (ww < 0) + ww = 0; + if (hh < 0) + hh = 0; gtk_pizza_set_size( GTK_PIZZA(m_mainWidget), m_frameToolBar->m_widget, xx, yy, ww, hh );