summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-30 20:14:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-30 20:14:57 +0300
commit0e57bb99bd73bded4b04b2e831dd579d17a21b00 (patch)
tree4a75254dc391cb6d46e1ecc940187eec1739a304 /src/gui/widgets/browserbox.cpp
parenta5426222cb3447e92a7051cbfe7ec8777648e4ee (diff)
downloadmv-0e57bb99bd73bded4b04b2e831dd579d17a21b00.tar.gz
mv-0e57bb99bd73bded4b04b2e831dd579d17a21b00.tar.bz2
mv-0e57bb99bd73bded4b04b2e831dd579d17a21b00.tar.xz
mv-0e57bb99bd73bded4b04b2e831dd579d17a21b00.zip
Fix wrong asserts in browserbox resize.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp8
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)