Bug in Layout: New-UDSelect

Product: PowerShell Universal
Version: 1.5.14

Dear All
I’ve discovered a little “layout bug” with New-UDSelect. It seems to not be alligned with other components like New-UDTextbox.
image

Obviously I’ve also tried different layout arrangements using UDCards, UDRows, UDColumns but all resulted in the same layout issue. :slight_smile:

Hope it can be fixed in a future release. :+1:t2::grinning:

Best regards,
Don

I’ve open an issue for this here: New-UDSelect layout issue · Issue #91 · ironmansoftware/issues · GitHub

Any update on this one?

I can apply a style to override but it must be against the JSS{i} class but the number changes.

This works to get the proper alignment, but as soon as a new number is generated it fails to align.

New-UDStyle -Style '.jss41 { margin: 0 !important; margin-top: -16px !important; }' -Content {
	New-UDSelect -Id 'Location' -FullWidth -Option { $SelectOptions } -DefaultValue ' '
}

image

JSS51
image

JSS18
image

No but I moved it into the 2.9 release milestone.

1 Like

Thanks Adam.

Not sure if this is wise, but my work around. :stuck_out_tongue:

10..99 | ForEach-Object { $SelectStyle += ".jss$_ { margin: 0 !important; margin-top: -16px !important; } " }                        
New-UDStyle -Style $SelectStyle -Content {
    New-UDSelect -Id 'Location' -FullWidth -Option { $SelectOptions } -DefaultValue ' '
}

Yes, I should not be using += but it’s for testing/dev.

1 Like