diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-30 20:14:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-30 20:14:57 +0300 |
commit | 0e57bb99bd73bded4b04b2e831dd579d17a21b00 (patch) | |
tree | 4a75254dc391cb6d46e1ecc940187eec1739a304 /src/gui/widgets/browserbox.cpp | |
parent | a5426222cb3447e92a7051cbfe7ec8777648e4ee (diff) | |
download | ManaVerse-0e57bb99bd73bded4b04b2e831dd579d17a21b00.tar.gz ManaVerse-0e57bb99bd73bded4b04b2e831dd579d17a21b00.tar.bz2 ManaVerse-0e57bb99bd73bded4b04b2e831dd579d17a21b00.tar.xz ManaVerse-0e57bb99bd73bded4b04b2e831dd579d17a21b00.zip |
Fix wrong asserts in browserbox resize.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 7687737b5..6d65a11cb 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -402,8 +402,12 @@ void BrowserBox::draw(Graphics *const graphics) if (mDimension.width != mWidth) { - updateHeight(); - reportAlways("browserbox resize in draw"); + mWidth = mDimension.width; + mHeight = calcHeight(); + setHeight(mHeight); + mUpdateTime = cur_time; + if (mDimension.width != mWidth) + reportAlways("browserbox resize in draw"); } if (mOpaque == Opaque_true) |