diff options
-rw-r--r-- | gui/ThemeLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/ThemeLayout.cpp b/gui/ThemeLayout.cpp index 821eed472d..1d5239ef80 100644 --- a/gui/ThemeLayout.cpp +++ b/gui/ThemeLayout.cpp @@ -71,7 +71,7 @@ int16 ThemeLayout::getParentW() { width += p->_paddingRight + p->_paddingLeft; if (p->getLayoutType() == kLayoutHorizontal) { for (uint i = 0; i < p->_children.size(); ++i) - width += p->_children[i]->getHeight() + p->_spacing; + width += p->_children[i]->getWidth() + p->_spacing; } p = p->_parent; } |