mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-10 16:09:09 +00:00
Fix tab bar size calculation to account for tab margin
This commit is contained in:
1 file changed
+2
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user