diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-28 13:47:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-28 13:47:54 +0300 |
commit | 502a5e829954ffa1e2ef48d6247b9939f1818a58 (patch) | |
tree | 1171e1fe5e1b12536a3ec1985433b7862cdbda1f /src | |
parent | 170b471c8e43c3c3ed07d0ff15f9165ae57efe4a (diff) | |
download | manaplus-502a5e829954ffa1e2ef48d6247b9939f1818a58.tar.gz manaplus-502a5e829954ffa1e2ef48d6247b9939f1818a58.tar.bz2 manaplus-502a5e829954ffa1e2ef48d6247b9939f1818a58.tar.xz manaplus-502a5e829954ffa1e2ef48d6247b9939f1818a58.zip |
Fix stick button placment.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/window.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 01d2bb923..e4a279e6c 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -422,9 +422,10 @@ void Window::widgetResized(const gcn::Event &event A_UNUSED) if (button) { int x = mDimension.width - button->getWidth() - - getOption("stickySpacing"); + - getOption("stickySpacing") - closePadding; + if (showClose) - x -= mSkin->getCloseImage(false)->getWidth() + closePadding; + x -= mSkin->getCloseImage(false)->getWidth(); mStickyRect.x = x; mStickyRect.y = getOption("stickyPadding"); |