I think we should set the stretch factor of the left column of the settings panel to 0, and the right column to 1, so that the left panel does not resize when expanding the outer panel as shown in the gif below:
The text was updated successfully, but these errors were encountered:
Hey there @sat28 , @sccolbert ! I thought I'd take a stab at this to get oriented to the codebase.
I followed up on Shaleen's insight into the settingeditor.ts and found that the constructor is instantiating a SplitPanel object, which is subclassed from @phosphorjs >splitpanel.d.ts, where there are (2) methods.
function getStretch(widget: Widget): number;
function setStretch(widget: Widget): number;
I'm trying to call these methods on the panel object, passing in the widget for the sub-panel (settingeditor.ts ln 150, 151) but I'm not sure what the widgets are called and I'm getting this error on build:
error TS2339: Property 'setStretch' does not exist on type 'SplitPanel'
Can you confirm I'm on the right track and if so, how do I access those methods on the right object?