From 716c75da3f91b798a5be303610aa4d0d2740dc70 Mon Sep 17 00:00:00 2001 From: laniakea64 Date: Sun, 22 Mar 2026 16:41:17 -0400 Subject: [PATCH] fix(rule): allow changing thickness after creation --- widget/src/rule.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/widget/src/rule.rs b/widget/src/rule.rs index ad812d7f..2f19bc68 100644 --- a/widget/src/rule.rs +++ b/widget/src/rule.rs @@ -105,20 +105,14 @@ where } /// Set the width of the rule - /// Will not be applied if it is vertical pub fn width(mut self, width: impl Into) -> Self { - if !self.is_vertical { - self.width = width.into(); - } + self.width = width.into(); self } /// Set the height of the rule - /// Will not be applied if it is horizontal pub fn height(mut self, height: impl Into) -> Self { - if self.is_vertical { - self.height = height.into(); - } + self.height = height.into(); self }