keep window z order on window resize
This commit is contained in:
parent
4c7aa66158
commit
0a0acf7e12
|
@ -510,6 +510,7 @@ export default function windows(
|
||||||
yPos: Math.min(yMax, yPos),
|
yPos: Math.min(yMax, yPos),
|
||||||
width: Math.min(winWidth, width - SCREEN_MARGIN_S),
|
width: Math.min(winWidth, width - SCREEN_MARGIN_S),
|
||||||
height: Math.min(winHeight, height - SCREEN_MARGIN_S),
|
height: Math.min(winHeight, height - SCREEN_MARGIN_S),
|
||||||
|
z: positions[id].z,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
newPositions[id] = positions[id];
|
newPositions[id] = positions[id];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user