Fix tab bar size calculation to account for tab margin

This commit is contained in:
baldurk committed 2018-02-22 16:22:51 +00:00
1 parent d9c7a4d416
commit 2588207201
1 file changed
+2 -1
+2 -1
View File
@@ -617,7 +617,8 @@ QSize RDStyle::sizeFromContents(ContentsType type, const QStyleOption *opt, cons
{
// have a maximum size for tabs
return size.boundedTo(QSize(Constants::TabMaxWidth, INT_MAX))
.expandedTo(QSize(Constants::TabMinWidth, 0));
.expandedTo(QSize(Constants::TabMinWidth, 0)) +
QSize(Constants::TabMargin * 2, 0);
}
else if(type == CT_CheckBox || type == CT_RadioButton)
{