]> git.proxmox.com Git - ui/proxmox-yew-widget-toolkit.git/commitdiff
widget: input panel: use correct column for custom childs
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 19 Dec 2024 12:09:16 +0000 (13:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 19 Dec 2024 12:22:10 +0000 (13:22 +0100)
we added a 'padding column' recently, and we forgot to adapt
the custom childs for that.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/widget/input_panel.rs

index b69579e0e21d6286771f62406cb710bc076b7dab..5f2868fb5ecac6b6100ad36d5aafd0b2c6c6c99a 100644 (file)
@@ -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;