V2 Treeview

Not sure what was happening before, but with SB v2 my TreeView pane changes width a lot. Especially if the browser is less than fullscreen.

Treeview is set for “size=0.5” (default, I think)…is there a way to lock in a fixed width? Something in the CSS maybe?

Try this space-style for a fixed 600px TreeView SB-Panel

.sb-panel {
  flex: 0 0 600px !important;  
 }

or 30% for a 30/70% ratio

.sb-panel {
  flex: 0 0 30% !important; 
 }
  • FYI this will resize all SB-Panels not just the Treeview, but there aren’t many other plugs which use sb-panel, so you should be safe if you don’t use other plugs.

Thank you! This works perfectly (at 260px).

How did you determine “sb-panel” ? The browser js console?

yes, right-clicked on the Treeview Panel then Inspect Element then in the Developer Tools i checked which is the topmost div selector’s class of the Treeview panel, and there it was: sp-panel :wink: that is how I usually do the space-style restylings to override the default values.

OK, cool…I thought maybe I missed a documentation page somehow. The new v2 has really messed with my head. So much fun!

This might be interesting for you too: