How fix width of nsSliderMBS when inside nsCustomToolbarMBS

I have an nsSliderMBS inserted into a nscustomToolbarMBS. It works OK but it automatically expands to fit the available width of the toolbar. Any idea how to fix or limit its width?

I have the same issue with an nsToolbarSearchField - just expands to fit.

Ah, found it.

NSToolbarItemMBS.maxsize and .minSize.

2 Likes