[pdm-devel] [PATCH yew-widget-toolkit 1/1] widget: input panel: use correct column for custom childs
Dominik Csapak
d.csapak at proxmox.com
Thu Dec 19 13:09:16 CET 2024
we added a 'padding column' recently, and we forgot to adapt
the custom childs for that.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
technically not required, but otherwise the radiobuttons
in pdm ui patch are not properly placed.
src/widget/input_panel.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/widget/input_panel.rs b/src/widget/input_panel.rs
index b69579e..5f2868f 100644
--- a/src/widget/input_panel.rs
+++ b/src/widget/input_panel.rs
@@ -133,12 +133,12 @@ impl InputPanel {
let (row, start, span) = match column {
FieldPosition::Left => {
self.left_count += 1;
- (self.left_count, 1, 3)
+ (self.left_count, 1, 4)
}
FieldPosition::Right => {
self.two_column = true;
self.right_count += 1;
- (self.right_count, 3, -1)
+ (self.right_count, 4, -1)
}
FieldPosition::Large => {
self.two_column = true;
--
2.39.5
More information about the pdm-devel
mailing list