mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix incorrect tab bar width
Tab bar width was incorrectly calculated.
This commit is contained in:
parent
2b53cca052
commit
91c94d6e49
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue