From d6c201415ccf5b1ceebf92fc588f22dc20f9bd81 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Aug 2013 20:44:17 +0300 Subject: Allow resize chat emotes window. --- src/gui/widgets/tabbedarea.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui/widgets/tabbedarea.cpp') diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 25fc3b8f2..88d12764a 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -196,6 +196,13 @@ void TabbedArea::addTab(Tab *const tab, gcn::Widget *const widget) updateArrowEnableState(); } +void TabbedArea::adjustWidget(gcn::Widget *const widget) const +{ + const int frameSize = 2 * mFrameSize; + widget->setSize(getWidth() - frameSize, + getHeight() - frameSize - mTabContainer->getHeight()); +} + void TabbedArea::addTab(const std::string &caption, gcn::Widget *const widget) { Tab *const tab = new Tab(this); -- cgit v1.2.3-70-g09d2