summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
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)