From 91c94d6e49459ff24ca7ceae065cb3e855118411 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 4 Nov 2023 02:58:55 -0700 Subject: [PATCH] Fix incorrect tab bar width Tab bar width was incorrectly calculated. --- src/TabGroup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp index 8c03303..afa40d5 100644 --- a/src/TabGroup.cpp +++ b/src/TabGroup.cpp @@ -455,7 +455,10 @@ void Hy3TabGroup::updateWithGroup(Hy3Node& node, bool warp) { auto gaps = node.parent == nullptr ? *gaps_out : *gaps_in; auto tpos = node.position + Vector2D(gaps, gaps) + node.gap_topleft_offset; - auto tsize = Vector2D(node.size.x - node.gap_bottomright_offset.x - gaps * 2, *bar_height); + auto tsize = Vector2D( + node.size.x - node.gap_bottomright_offset.x - node.gap_topleft_offset.x - gaps * 2, + *bar_height + ); this->hidden = node.hidden; if (this->pos.goalv() != tpos) {