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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index f9ad9fc83..a4f6de473 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -65,6 +65,7 @@ BrowserBox::BrowserBox(const Widget2 *const widget,
const std::string &skin) :
Widget(widget),
MouseListener(),
+ WidgetListener(),
mTextRows(),
mTextRowLinksCount(),
mLineParts(),
@@ -98,6 +99,7 @@ BrowserBox::BrowserBox(const Widget2 *const widget,
setFocusable(true);
addMouseListener(this);
+ addWidgetListener(this);
mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND);
@@ -954,3 +956,8 @@ void BrowserBox::selectSelection()
mLinkHandler->handleLink(mLinks[CAST_SIZE(mSelectedLink)].link,
nullptr);
}
+
+void BrowserBox::widgetResized(const Event &event A_UNUSED)
+{
+ updateHeight();
+}