]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/odcombo.cpp
OpenVMS : add compile support for debugrpt sample
[wxWidgets.git] / src / generic / odcombo.cpp
index 1d912e19c0a44f17467cc22fb0aa06041f4c591a..83dc7cbb95bcbacbd954b03fd78209f31947b59a 100644 (file)
@@ -760,6 +760,11 @@ wxSize wxVListBoxComboPopup::GetAdjustedSize( int minWidth, int prefHeight, int
             height = maxHeight;
 
         int totalHeight = GetTotalHeight(); // + 3;
+
+        // Take borders into account on Mac or scrollbars always appear
+#if defined(__WXMAC__)
+        totalHeight += 2;
+#endif
         if ( height >= totalHeight )
         {
             height = totalHeight;