aboutsummaryrefslogtreecommitdiff
path: root/gui/widgets/tab.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-12 22:37:57 +0600
committerAlexander Tkachev2016-07-12 22:37:57 +0600
commit64a79fd1ab4270ed50ef62cf0a795c842eb4d72a (patch)
tree4d7b9ff7ff40d55870a55890927874f7f999d395 /gui/widgets/tab.h
parent53ab0b28051eb346aa6a05c8c60e77d0f4cfa3cc (diff)
downloadscummvm-rg350-64a79fd1ab4270ed50ef62cf0a795c842eb4d72a.tar.gz
scummvm-rg350-64a79fd1ab4270ed50ef62cf0a795c842eb4d72a.tar.bz2
scummvm-rg350-64a79fd1ab4270ed50ef62cf0a795c842eb4d72a.zip
GUI: Fix TabWidget height issues
Changes theme stx files to specify TabWidget's type. That fixes wrong TabWidget height. Changes TabWidget's getHeight() to return not only "children" height, but also tabs height. That fixes wrong clipping area. Changes Widget's findWidget to use getHeight(). That fixes bug when widgets in the bottom of TabWidget were not reacting to the mouse events.
Diffstat (limited to 'gui/widgets/tab.h')
-rw-r--r--gui/widgets/tab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/widgets/tab.h b/gui/widgets/tab.h
index 148f164fbb..17b85986b5 100644
--- a/gui/widgets/tab.h
+++ b/gui/widgets/tab.h
@@ -110,6 +110,7 @@ protected:
// We overload getChildY to make sure child widgets are positioned correctly.
// Essentially this compensates for the space taken up by the tab title header.
virtual int16 getChildY() const;
+ virtual uint16 getHeight() const;
virtual void drawWidget();