TwoPaneSplitView - settings initial fixed size in %?

@uDamian I noticed you had posted earlier about TwoPaneSplitView. I was wondering, if you would know if there a way to set the TwoPaneSplitView initial size in percentage? The documentation doesn’t say what unit the initial size for fixedPaneInitialDimension is. It’s just a single value without any unit so it feels a bit unstandard.

It would be nice, if one could add the initial value of fixedPaneInitialDimension in any uss unity (px, % etc). Is there currently a workaround for setting a percentual width?

I also checked out the source in github and setting the initial pane sets a bunch of parameters of different components, so it’s not just about setting one width for the left pane, because the handle doesn’t follow.

An easier solution to this would be nice.

Hey! Indeed, the TwoPaneSplitView control could use some improvements. If I recall correctly, it was created before support for percentages was added. I will log the feature request in our backlog.

I’m also noting that there should be an easier way to set the TwoPaneSplitView through code. I’ll make sure this is logged in as well.

Thank you for reporting it.

I don’t see this being updated. Did I miss it? Is there a way to use percentages?

Hi @pzolla , unfortunately, this is still not available.