summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-28 13:47:54 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-28 13:47:54 +0300
commit502a5e829954ffa1e2ef48d6247b9939f1818a58 (patch)
tree1171e1fe5e1b12536a3ec1985433b7862cdbda1f /src/gui/widgets
parent170b471c8e43c3c3ed07d0ff15f9165ae57efe4a (diff)
downloadmv-502a5e829954ffa1e2ef48d6247b9939f1818a58.tar.gz
mv-502a5e829954ffa1e2ef48d6247b9939f1818a58.tar.bz2
mv-502a5e829954ffa1e2ef48d6247b9939f1818a58.tar.xz
mv-502a5e829954ffa1e2ef48d6247b9939f1818a58.zip
Fix stick button placment.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp5
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");