projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new layout was messing with separator positions
[wxWidgets.git]
/
src
/
mac
/
carbon
/
toolbar.cpp
diff --git
a/src/mac/carbon/toolbar.cpp
b/src/mac/carbon/toolbar.cpp
index 1df959231d5d48c0d66dd5c65c54a85b3a2d474c..45c2ae0e2780f768683bb12bc7a5e790b84103db 100644
(file)
--- a/
src/mac/carbon/toolbar.cpp
+++ b/
src/mac/carbon/toolbar.cpp
@@
-99,8
+99,10
@@
public:
{
// separator size
wxSize sz = GetToolBar()->GetToolSize() ;
- sz.x /= 4 ;
- sz.y /= 4 ;
+ if ( GetToolBar()->GetWindowStyleFlag() & wxTB_VERTICAL )
+ sz.y /= 4 ;
+ else
+ sz.x /= 4 ;
return sz ;
}
}