diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-07 23:37:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-07 23:37:06 +0300 |
commit | 661ae1c08d0cab92011e1913e587901c51aee5fe (patch) | |
tree | 10c5bc4db6e767a5232d2c1056c1af578848fc74 /src/gui/widgets/window.cpp | |
parent | 2538267ce30c5cfe3bbf23442e7c3a80e647f260 (diff) | |
download | manaverse-661ae1c08d0cab92011e1913e587901c51aee5fe.tar.gz manaverse-661ae1c08d0cab92011e1913e587901c51aee5fe.tar.bz2 manaverse-661ae1c08d0cab92011e1913e587901c51aee5fe.tar.xz manaverse-661ae1c08d0cab92011e1913e587901c51aee5fe.zip |
Fix confirm dialog width if caption too big.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 9de9b431f..1c63bba31 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -123,6 +123,8 @@ Window::Window(const std::string &caption, mDefaultY(0), mDefaultWidth(0), mDefaultHeight(0), + mCaptionOffsetX(7), + mCaptionOffsetY(5), mShowTitle(true), mLastRedraw(true), mGrip(nullptr), @@ -138,8 +140,6 @@ Window::Window(const std::string &caption, mMaxWinWidth(mainGraphics->mWidth), mMaxWinHeight(mainGraphics->mHeight), mVertexes(new ImageCollection), - mCaptionOffsetX(7), - mCaptionOffsetY(5), mCaptionAlign(Graphics::LEFT), mTitlePadding(4), mGripPadding(2), |