jupyterlab / lumino

Lumino is a library for building interactive web applications
https://lumino.readthedocs.io/
Other
635 stars 126 forks source link

How DockPanel set relative sizes? #677

Open yswang0927 opened 10 months ago

yswang0927 commented 10 months ago

Hi,

SplitPanel has setRelativeSizes() method, I can set splitPanel.setRelativeSizes([0.2, 0.6, 0.2]) to layout it.

But, setRelativeSizes() method not found in DockPanel, how to set relative sizes on DockPanel?

Something like:

let myDockpanel = new DockPanel();
myDockpanel.addWidget(widget, {ref: 'tab-after',  size: 0.2 })

Thanks.