MenuTree versus horizontalMenu auto sizing based on window

I'm trying to use menuTree object in a view that's being used in a shared settings dock at the left side of the screen. It seems to be working but I noticed when the screen is stretched to be taller, the text gets bigger but the width of menuTree is locked to the value set in the docked views size parameter, causing the text to wrap. The horizontalMenu in a different docked view at the top of the screen, doesn't have this issue. The text gets bigger but it also gets wider so the text doesn't wrap around.

I tried having two docked views at the left and using script to close one and show the other that are configured to the two different widths and that worked until you navigate to a different screen. I'm having trouble finding a way keep that set one way or another. I'd also like to be able to hide it all together and I'm not sure if that's possible if you're switching between two docked views.

I also tried using the system.perspective.alterDock function to change the size property of the dock, which again works but it's also lost once I navigate to a new screen. I did try adding it on a start script for the view that worked but it would bounce from the original size to the new size kind of animating it and sometimes it would not change the width. Like there's a timing issue of some kind.

Is there a way to do this, a parameter of some kind I'm missing?