mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix tab bar position
This commit is contained in:
parent
c74b108c29
commit
90f36e3b00
1 changed files with 2 additions and 2 deletions
|
@ -356,8 +356,8 @@ void Hy3TabGroup::updateWithGroup(Hy3Node& node) {
|
||||||
static const auto* bar_height = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hy3:tabs:height")->intValue;
|
static const auto* bar_height = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hy3:tabs:height")->intValue;
|
||||||
|
|
||||||
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);
|
auto tpos = node.position + Vector2D(gaps, gaps) + node.gap_pos_offset;
|
||||||
auto tsize = Vector2D(node.size.x - gaps * 2, *bar_height);
|
auto tsize = Vector2D(node.size.x - node.gap_size_offset.x - gaps * 2, *bar_height);
|
||||||
|
|
||||||
this->hidden = node.hidden;
|
this->hidden = node.hidden;
|
||||||
if (this->pos.goalv() != tpos) this->pos = tpos;
|
if (this->pos.goalv() != tpos) this->pos = tpos;
|
||||||
|
|
Loading…
Add table
Reference in a new issue