00f55e0b52dc023629baf86f997fb0ca82c4e728
- Author
- outfoxxed <outfoxxed@outfoxxed.me>
- Committer
- outfoxxed <outfoxxed@outfoxxed.me>
- Date
Message
fix tab bars not respecing outer gaps on root node
Fixes #143
Diff
1diff --git a/CHANGELOG.md b/CHANGELOG.md
2index 4481e1559c813c0dca072100ed19c6a63c2e57c6..4877a54cfa33da0363ddc7b0f9f4baea0ea2954f 100644
3--- a/CHANGELOG.md
4+++ b/CHANGELOG.md
5@@ -1,5 +1,9 @@
6 # Changelog
7
8+# Upcoming
9+
10+- Fixed tab bars on root node not respecting outer gaps
11+
12 # hl0.43.0 and before
13
14 - Fixed blurry tab bar text
15diff --git a/src/Hy3Node.cpp b/src/Hy3Node.cpp
16index 448f29bb6ad1bfbf23cb1cec91b0428c1c6474af..095aa1404fc6c0d8aadcedc5447d7ef598b55689 100644
17--- a/src/Hy3Node.cpp
18+++ b/src/Hy3Node.cpp
19@@ -339,7 +339,10 @@ void Hy3Node::recalcSizePosRecursive(bool no_animation) {
20 return;
21 }
22
23- if (this->parent != nullptr) {
24+ if (this->parent == nullptr) {
25+ this->gap_topleft_offset = gap_topleft_offset;
26+ this->gap_bottomright_offset = gap_bottomright_offset;
27+ } else {
28 gap_topleft_offset = this->gap_topleft_offset;
29 gap_bottomright_offset = this->gap_bottomright_offset;
30 }