From 97ce6d0704369022c64030b0f39a1bdc0cd92797 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Sep 2013 22:46:03 +0300 Subject: fix emote window resize issue in software mode. --- src/gui/emotewindow.cpp | 7 +++++++ src/gui/emotewindow.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/gui/emotewindow.cpp b/src/gui/emotewindow.cpp index 61b5a0dde..4371b41fc 100644 --- a/src/gui/emotewindow.cpp +++ b/src/gui/emotewindow.cpp @@ -226,4 +226,11 @@ void EmoteWindow::widgetResized(const gcn::Event &event) mTabs->adjustWidget(mScrollColorPage); mColorPage->setSize(mScrollColorPage->getWidth(), mScrollColorPage->getHeight()); + mEmotePage->widgetResized(event); +} + +void EmoteWindow::widgetMoved(const gcn::Event &event) +{ + Window::widgetMoved(event); + mEmotePage->widgetResized(event); } diff --git a/src/gui/emotewindow.h b/src/gui/emotewindow.h index f65636e1a..a9002117e 100644 --- a/src/gui/emotewindow.h +++ b/src/gui/emotewindow.h @@ -63,6 +63,8 @@ class EmoteWindow final : public Window void widgetResized(const gcn::Event &event) override; + void widgetMoved(const gcn::Event &event) override; + private: TabbedArea *mTabs; EmotePage *mEmotePage; -- cgit v1.2.3-70-g09d2