From 661ae1c08d0cab92011e1913e587901c51aee5fe Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Apr 2016 23:37:06 +0300 Subject: Fix confirm dialog width if caption too big. --- src/gui/widgets/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/window.cpp') 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), -- cgit v1.2.3-70-g09d2