File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
src/vs/base/browser/ui/splitview Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ export abstract class Pane extends Disposable implements IView {
58
58
59
59
private expandedSize : number | undefined = undefined ;
60
60
private _headerVisible = true ;
61
- private _bodyRendered = false ;
62
61
private _minimumBodySize : number ;
63
62
private _maximumBodySize : number ;
64
63
private _ariaHeaderLabel : string ;
@@ -159,11 +158,6 @@ export abstract class Pane extends Disposable implements IView {
159
158
this . updateHeader ( ) ;
160
159
161
160
if ( expanded ) {
162
- if ( ! this . _bodyRendered ) {
163
- this . renderBody ( this . body ) ;
164
- this . _bodyRendered = true ;
165
- }
166
-
167
161
if ( typeof this . animationTimer === 'number' ) {
168
162
clearTimeout ( this . animationTimer ) ;
169
163
}
@@ -255,13 +249,7 @@ export abstract class Pane extends Disposable implements IView {
255
249
} ) ;
256
250
257
251
this . body = append ( this . element , $ ( '.pane-body' ) ) ;
258
-
259
- // Only render the body if it will be visible
260
- // Otherwise, render it when the pane is expanded
261
- if ( ! this . _bodyRendered && this . isExpanded ( ) ) {
262
- this . renderBody ( this . body ) ;
263
- this . _bodyRendered = true ;
264
- }
252
+ this . renderBody ( this . body ) ;
265
253
266
254
if ( ! this . isExpanded ( ) ) {
267
255
this . body . remove ( ) ;
You can’t perform that action at this time.
0 commit comments