File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.DockView/wwwroot Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 --dv-tabs-and-actions-container-font-size : 12px ;
2828 }
2929
30+ .bb-dockview .dv-resize-container {
31+ border : 1px solid var (--bs-border-color );
32+ }
33+
3034 .bb-dockview .bb-dockview-panel {
3135 height : 100% ;
3236 width : 100% ;
Original file line number Diff line number Diff line change @@ -317,9 +317,25 @@ const saveConfig = dockview => {
317317 const json = dockview . toJSON ( ) ;
318318 if ( dockview . floatingGroups && dockview . floatingGroups . length > 0 ) {
319319 json . floatingGroups . forEach ( ( fg , index ) => {
320- const width = dockview . floatingGroups [ index ] . group . width
321- fg . position . width = fg . position . width || ( width ? width + 2 : 300 )
322- fg . position . height = fg . position . height || dockview . floatingGroups [ index ] . group . height
320+ const group = dockview . floatingGroups [ index ] . group
321+ if ( fg . position . width > 0 ) {
322+ group . panels . forEach ( panel => {
323+ ! panel . params . currentPosition && ( panel . params . currentPosition = { } )
324+ panel . params . currentPosition . width = fg . position . width
325+ } )
326+ }
327+ else {
328+ fg . position . width = group . params . currentPosition . width || 500
329+ }
330+ if ( fg . position . height > 0 ) {
331+ group . panels . forEach ( panel => {
332+ ! panel . params . currentPosition && ( panel . params . currentPosition = { } )
333+ panel . params . currentPosition . height = fg . position . height
334+ } )
335+ }
336+ else {
337+ fg . position . height = group . params . currentPosition . height || 350
338+ }
323339 } )
324340 }
325341 localStorage . setItem ( dockview . params . options . localStorageKey , JSON . stringify ( json ) ) ;
You can’t perform that action at this time.
0 commit comments