diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-22 02:39:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-22 22:16:47 +0300 |
commit | ad0c5a085c3c6531db2a84a77d590311ed1d2d8f (patch) | |
tree | 6d9d53668eb26f6ae94126a80298d3791b0f8962 /src/gui/widgets/window.cpp | |
parent | c70f14d7dc7d2cde472deb3a7aca60a482b7eb17 (diff) | |
download | mv-ad0c5a085c3c6531db2a84a77d590311ed1d2d8f.tar.gz mv-ad0c5a085c3c6531db2a84a77d590311ed1d2d8f.tar.bz2 mv-ad0c5a085c3c6531db2a84a77d590311ed1d2d8f.tar.xz mv-ad0c5a085c3c6531db2a84a77d590311ed1d2d8f.zip |
Add auto resize feature to equipment window for correct placing slots.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 3f54ce3cc..9128402ad 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -50,6 +50,10 @@ Window::Window(const std::string &caption, const bool modal, Widget2(), gcn::WidgetListener(), mSkin(nullptr), + mDefaultX(0), + mDefaultY(0), + mDefaultWidth(0), + mDefaultHeight(0), mGrip(nullptr), mParent(parent), mLayout(nullptr), @@ -66,10 +70,6 @@ Window::Window(const std::string &caption, const bool modal, mMinWinHeight(40), mMaxWinWidth(mainGraphics->mWidth), mMaxWinHeight(mainGraphics->mHeight), - mDefaultX(0), - mDefaultY(0), - mDefaultWidth(0), - mDefaultHeight(0), mVertexes(new GraphicsVertexes()), mCaptionOffsetX(7), mCaptionOffsetY(5), |