diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 11:20:55 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-21 11:20:55 +0000 |
commit | 59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf (patch) | |
tree | 72ee20339fa7dec7934b8343bdddc29a633946b0 /src/gui/window.cpp | |
parent | 4f6ebd0c62299e3ab2d4b4ef70fd2a27d5b4908c (diff) | |
download | mana-client-59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf.tar.gz mana-client-59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf.tar.bz2 mana-client-59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf.tar.xz mana-client-59c3b69103bf9bc346f6a4337c2ede0f43bfb6bf.zip |
Made visible the resizable grip on inventory window.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index bf5f03db..f8d4a503 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -233,7 +233,8 @@ void Window::setSize(int width, int height) { mLayout->setWidth(width - 2 * getPadding()); mLayout->setHeight(height - getPadding() - getTitleBarHeight()); - mLayout->reflow(); + int w, h; + mLayout->reflow(w, h); } fireWindowEvent(WindowEvent(this, WindowEvent::WINDOW_RESIZED)); @@ -621,10 +622,13 @@ Cell &Window::place(int x, int y, gcn::Widget *wg, int w, int h) void Window::reflowLayout() { if (!mLayout) return; - mLayout->reflow(); + int w, h; + mLayout->reflow(w, h); + w += mLayout->getX(); + h += mLayout->getY(); Layout *tmp = mLayout; // Hide it so that the incoming resize does not reflow the layout again. mLayout = NULL; - resizeToContent(); + setContentSize(w, h); mLayout = tmp; } |