91c94d6e49459ff24ca7ceae065cb3e855118411

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Fix incorrect tab bar width

Tab bar width was incorrectly calculated.

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 8c033034c3945d0454ee606c7b88458a4aa2974b..afa40d5ce1e915505f123f186fbc822bfd5feb0e 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -455,7 +455,10 @@ void Hy3TabGroup::updateWithGroup(Hy3Node& node, bool warp) {
 6 
 7 	auto gaps = node.parent == nullptr ? *gaps_out : *gaps_in;
 8 	auto tpos = node.position + Vector2D(gaps, gaps) + node.gap_topleft_offset;
 9-	auto tsize = Vector2D(node.size.x - node.gap_bottomright_offset.x - gaps * 2, *bar_height);
10+	auto tsize = Vector2D(
11+	    node.size.x - node.gap_bottomright_offset.x - node.gap_topleft_offset.x - gaps * 2,
12+	    *bar_height
13+	);
14 
15 	this->hidden = node.hidden;
16 	if (this->pos.goalv() != tpos) {