From 4a819f03a40d0a402fda465dc3656cfe53317384 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Jun 2017 02:32:32 +0300 Subject: Fix asserts in browserbox on resize. --- src/gui/widgets/browserbox.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/browserbox.h') diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h index aa5a70b0e..a80729cb5 100644 --- a/src/gui/widgets/browserbox.h +++ b/src/gui/widgets/browserbox.h @@ -24,8 +24,6 @@ #ifndef GUI_WIDGETS_BROWSERBOX_H #define GUI_WIDGETS_BROWSERBOX_H -#include "listeners/mouselistener.h" - #include "enums/simpletypes/opaque.h" #include "enums/gui/browserboxmode.h" @@ -36,6 +34,9 @@ #include "gui/widgets/linepart.h" #include "gui/widgets/widget.h" +#include "listeners/mouselistener.h" +#include "listeners/widgetlistener.h" + #include "localconsts.h" class LinkHandler; @@ -45,7 +46,8 @@ class LinkHandler; * parent conteiner. */ class BrowserBox final : public Widget, - public MouseListener + public MouseListener, + public WidgetListener { public: /** @@ -155,6 +157,8 @@ class BrowserBox final : public Widget, void selectSelection(); + void widgetResized(const Event &event) override final; + private: int calcHeight() A_WARN_UNUSED; -- cgit v1.2.3-70-g09d2