layout/tab_indicator: Fix negative gap

Regressed in a recent commit that added max1.
This commit is contained in:
Ivan Molodetskikh
2025-04-26 09:24:53 +03:00
parent 501ea47128
commit bfd42c74f4
+2 -1
View File
@@ -84,7 +84,8 @@ impl TabIndicator {
let progress = self.open_anim.as_ref().map_or(1., |a| a.value().max(0.));
let width = round_max1(self.config.width.0);
let gap = round_max1(self.config.gap.0);
let gap = self.config.gap.0;
let gap = round_max1(gap.abs()).copysign(gap);
let gaps_between = round_max1(self.config.gaps_between_tabs.0);
let position = self.config.position;