Fix incorrect tab bar width

Tab bar width was incorrectly calculated.
This commit is contained in:
outfoxxed 2023-11-04 02:58:55 -07:00
parent 2b53cca052
commit 91c94d6e49
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -455,7 +455,10 @@ void Hy3TabGroup::updateWithGroup(Hy3Node& node, bool warp) {
auto gaps = node.parent == nullptr ? *gaps_out : *gaps_in; auto gaps = node.parent == nullptr ? *gaps_out : *gaps_in;
auto tpos = node.position + Vector2D(gaps, gaps) + node.gap_topleft_offset; 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; this->hidden = node.hidden;
if (this->pos.goalv() != tpos) { if (this->pos.goalv() != tpos) {