]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_split.cpp
Apply Brian's own changes.
[wxWidgets.git] / src / xrc / xh_split.cpp
index be23b871f5dbf5e8e32b2761d0da5e9362c4a4b4..fd219118089c2eb66f37ec5e7bd899e62910b6d7 100644 (file)
@@ -57,8 +57,11 @@ wxObject *wxSplitterWindowXmlHandler::DoCreateResource()
 
     long sashpos = GetLong(wxT("sashpos"), 0);
     long minpanesize = GetLong(wxT("minsize"), -1);
+    float gravity = GetFloat(wxT("gravity"), 0.0);
     if (minpanesize != -1)
-         splitter->SetMinimumPaneSize(minpanesize);
+        splitter->SetMinimumPaneSize(minpanesize);
+    if (gravity != 0.0)
+        splitter->SetSashGravity(gravity);
 
     wxWindow *win1 = NULL, *win2 = NULL;
     wxXmlNode *n = m_node->GetChildren();