@@ -12,6 +12,10 @@ class ShellWindowPanes extends LitElement {
12
12
13
13
static get styles ( ) {
14
14
return css `
15
+ .pane-background {
16
+ position: fixed;
17
+ background: #fff;
18
+ }
15
19
.pane-border {
16
20
position: fixed;
17
21
background: var(--bg-color--paneborder);
@@ -47,9 +51,14 @@ class ShellWindowPanes extends LitElement {
47
51
// =
48
52
49
53
render ( ) {
50
- if ( ! this . activeTab || this . activeTab . paneLayout . length <= 1 ) {
54
+ if ( ! this . activeTab ) {
51
55
return html ``
52
56
}
57
+ const background = ( pane ) => this . isResizing ? '' : html `
58
+ < div class ="pane-background "
59
+ style ="left: ${ pane . bounds . x } px; top: ${ pane . bounds . y } px; width: ${ pane . bounds . width } px; height: ${ pane . bounds . height } px "
60
+ > </ div >
61
+ `
53
62
const horzLine = ( pane , y , edge ) => html `
54
63
< div class ="pane-border horz ${ pane . isActive ? 'active' : '' } ${ ! pane . isEdge [ edge ] ? 'movable' : '' } "
55
64
style ="left: ${ pane . bounds . x - 2 } px; top: ${ y } px; width: ${ pane . bounds . width + 4 } px "
@@ -66,8 +75,16 @@ class ShellWindowPanes extends LitElement {
66
75
@mouseup=${ this . onMouseUp }
67
76
> </ div >
68
77
`
78
+ if ( this . activeTab . paneLayout . length <= 1 ) {
79
+ return html `
80
+ ${ repeat ( this . activeTab . paneLayout , pane => pane . id , pane => html `
81
+ ${ background ( pane ) }
82
+ ` ) }
83
+ `
84
+ }
69
85
return html `
70
86
${ repeat ( this . activeTab . paneLayout , pane => pane . id , pane => html `
87
+ ${ background ( pane ) }
71
88
${ horzLine ( pane , pane . bounds . y - 2 , 'top' ) }
72
89
${ horzLine ( pane , pane . bounds . y + pane . bounds . height , 'bottom' ) }
73
90
${ vertLine ( pane , pane . bounds . x - 2 , 'left' ) }
0 commit comments