diff options
author | Eugene Sandulenko | 2016-07-12 22:42:18 +0200 |
---|---|---|
committer | GitHub | 2016-07-12 22:42:18 +0200 |
commit | 3359abbe5fa9486ce45e7183b93a2c010f5457df (patch) | |
tree | 5dcdeebe903ec79a8bcd1f73148f027a1e616374 /gui/widgets/tab.cpp | |
parent | a9b7b40c66ecc428d4c23d08e201ee00b659d181 (diff) | |
parent | 64a79fd1ab4270ed50ef62cf0a795c842eb4d72a (diff) | |
download | scummvm-rg350-3359abbe5fa9486ce45e7183b93a2c010f5457df.tar.gz scummvm-rg350-3359abbe5fa9486ce45e7183b93a2c010f5457df.tar.bz2 scummvm-rg350-3359abbe5fa9486ce45e7183b93a2c010f5457df.zip |
Merge pull request #784 from Tkachov/tabwidget-height-fix
GUI: Fix TabWidget height issues
Diffstat (limited to 'gui/widgets/tab.cpp')
-rw-r--r-- | gui/widgets/tab.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/widgets/tab.cpp b/gui/widgets/tab.cpp index 784e438952..15e6a9d370 100644 --- a/gui/widgets/tab.cpp +++ b/gui/widgets/tab.cpp @@ -85,6 +85,14 @@ int16 TabWidget::getChildY() const { return getAbsY() + _tabHeight; } +uint16 TabWidget::getHeight() const { + // NOTE: if you change that, make sure to do the same + // changes in the ThemeLayoutTabWidget (gui/ThemeLayout.cpp) + // NOTE: this height is used for clipping, so it *includes* + // tabs, because it starts from getAbsY(), not getChildY() + return _h + _tabHeight; +} + int TabWidget::addTab(const String &title) { // Add a new tab page Tab newTab; |