]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/nbkbase.cpp
Some fixes for wxURLDataObject when wxUSE_UNICODE==1
[wxWidgets.git] / src / common / nbkbase.cpp
index 436364a179b591103ef003a3e147f87a182d7078..527fcc27db5a4d6f8f8d02c9dca4ef821104936a 100644 (file)
@@ -91,10 +91,17 @@ wxSize wxNotebookBase::CalcSizeFromPage(const wxSize& sizePage)
     // this was just taken from wxNotebookSizer::CalcMin() and is, of
     // course, totally bogus - just like the original code was
     wxSize sizeTotal = sizePage;
+    
     if ( HasFlag(wxNB_LEFT) || HasFlag(wxNB_RIGHT) )
+    {
         sizeTotal.x += 90;
+        sizeTotal.y += 10;
+    }
     else
+    {
+        sizeTotal.x += 10;
         sizeTotal.y += 40;
+    }
 
     return sizeTotal;
 }