jsakamoto / Toolbelt.Blazor.SplitContainer

A Blazor component to create panes separated by a slidable splitter bar.
https://jsakamoto.github.io/Toolbelt.Blazor.SplitContainer/
Mozilla Public License 2.0
57 stars 6 forks source link

Library requires FirstPaneSize #8

Open deeje2 opened 1 week ago

deeje2 commented 1 week ago

Version: 1.1.2.1 .NET Version: 8.0 Blazor Type: Blazor Server

I'm having an issue where not setting bind-FirstPaneSize="_PaneSize" results in the splitter not working. If I add the parameter, the splitter functions normally. I'd ideally not like to set the size as I'd like a 50/50 split of the two panes. Any suggestions?

jsakamoto commented 1 week ago

@deeje2 Thank you for asking. Unfortunately, this library doesn't have the ability you want right now. However, I know that not only you but many people have wanted that ability. So, I'll try to implement a feature that will allow the component to work fine without explicit pane size specifications in the future.

deeje2 commented 1 week ago

Thanks for the confirmation, @jsakamoto. I appreciate you looking into implementing this in the future.

jsakamoto commented 1 week ago

Hi @deeje2, Would you like to try the new version of the "Blazor SplitContainer" that was released today?

It still requires either the FirstPaneSzie or SecondPaneSize parameter, but now, it supports "%" for the unit of the pane size. So, you can specify the initial FirstPaneSize value with 50.0%. That will split the container area as 50/50. I hope this solution fits your requirements.