From d9d99a3ea8dc905487c2ff2c32c507bbd2df9f86 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Jun 2017 17:58:43 +0300 Subject: Add function updateSize into browserbox. --- src/gui/widgets/browserbox.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/widgets/browserbox.cpp') diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index a4f6de473..486ad9ebd 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -887,6 +887,13 @@ void BrowserBox::updateHeight() } } +void BrowserBox::updateSize(const bool always) +{ + if (always) + mUpdateTime = 0; + updateHeight(); +} + std::string BrowserBox::getTextAtPos(const int x, const int y) const { int textX = 0; -- cgit v1.2.3-70-g09d2