From: Robert Roebling Date: Sun, 17 Oct 1999 19:54:51 +0000 (+0000) Subject: Added temporary test to splitter. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/510d156fc53b19ac7a96ada15475575ded389b50 Added temporary test to splitter. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/splitter/test.cpp b/samples/splitter/test.cpp index 64a0228da3..d443b1ad67 100644 --- a/samples/splitter/test.cpp +++ b/samples/splitter/test.cpp @@ -166,6 +166,9 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons SetMenuBar(menuBar); m_splitter = new MySplitterWindow(this, SPLITTER_WINDOW); + + wxSize sz( m_splitter->GetSize() ); + wxLogMessage( "Initial splitter size: %d %d\n", (int)sz.x, (int)sz.y ); m_leftCanvas = new MyCanvas(m_splitter, CANVAS1, 0, 0, 400, 400, "Test1" ); m_leftCanvas->SetBackgroundColour(*wxRED); diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 2c275b4434..f1a03228af 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -125,9 +125,7 @@ static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation* win->SetSize( alloc->x, alloc->y, alloc->width, alloc->height ); if (win->GetAutoLayout()) - { win->Layout(); - } } //----------------------------------------------------------------------------- diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index 2c275b4434..f1a03228af 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -125,9 +125,7 @@ static void gtk_page_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation* win->SetSize( alloc->x, alloc->y, alloc->width, alloc->height ); if (win->GetAutoLayout()) - { win->Layout(); - } } //-----------------------------------------------------------------------------