File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -682,6 +682,9 @@ export class Layout {
682682 * @returns coordinate of cached position, or undefined if it doesn't exist
683683 */
684684 static getGhostFrameX ( envId : string ) : number | undefined {
685+ if ( Layout . clearDeadFrames ) {
686+ return undefined ;
687+ }
685688 const cache = CseMachine . masterLayout ;
686689 if ( cache && cache . frames . has ( envId ) ) {
687690 const fixedX = cache . frames . get ( envId ) ! ;
@@ -702,6 +705,9 @@ export class Layout {
702705 * Reassign x coordinate of every frame to their predetermined position by calling getGhostFrameX.
703706 */
704707 static applyFixedPositions ( ) {
708+ if ( Layout . clearDeadFrames || ! CseMachine . masterLayout ) {
709+ return ;
710+ }
705711 const cache = CseMachine . masterLayout ! ; // getLayoutPositions() must have been called before
706712 Layout . levels . forEach ( level => {
707713 level . frames . forEach ( frame => {
You can’t perform that action at this time.
0 commit comments