New-UDCard stacks New-UDExpansionPanelGroup

New-UDCard stacks New-UDExpansionPanelGroup

avatar
(anonymous user)
Product: PowerShell Universal
Version: 4.0.5


Hi,

Im having some issues, getting my New-UDCard to work with New-UDExpansionPanelGroup.
I basically want 2 x New-UDExpansionPanelGroup to be next to each other (left and right), BUT within a New-UDCard.

This code works, but i need it to be in a card with a title.

New-UDApp -Title 'PowerShell Universal' -Content {
    New-UDGrid -Container -Spacing 3 -Content {
        New-UDGrid -Item -ExtraSmallSize 6 -Content {
            New-UDExpansionPanelGroup -Children {
                New-UDExpansionPanel -Title "Expansion Panel left" -Children {}
            }
        }
        New-UDGrid -Item -ExtraSmallSize 6 -Content {
            New-UDExpansionPanelGroup -Children {
                New-UDExpansionPanel -Title "Expansion Panel right" -Children {}
            }
        }
    }
}




12715a57a72c6242fe71f1b8cc20744c2fa076ce
But if i wrap them in a New-UDCard, it stacks them on top of each other:

New-UDApp -Title 'PowerShell Universal' -Content {
    New-UDGrid -Container -Spacing 3 -Content {
        New-UDCard -Title "Important title" -Content {
            New-UDGrid -Item -ExtraSmallSize 6 -Content {
                New-UDExpansionPanelGroup -Children {
                    New-UDExpansionPanel -Title "Expansion Panel left" -Children {}
                }
            }
            New-UDGrid -Item -ExtraSmallSize 6 -Content {
                New-UDExpansionPanelGroup -Children {
                    New-UDExpansionPanel -Title "Expansion Panel right" -Children {}
                }
            }
        }
        
    }
}




8e92754139bf2e61bf6532d11ee3d76c3586f1e1
How do i prevent that from happening?

8e92754139bf2e61bf6532d11ee3d76c3586f1e1.png

12715a57a72c6242fe71f1b8cc20744c2fa076ce.png

All Comments (0)