diff --git a/core/client/components/layout/KWindow.vue b/core/client/components/layout/KWindow.vue index 6e4803581..fe2247899 100644 --- a/core/client/components/layout/KWindow.vue +++ b/core/client/components/layout/KWindow.vue @@ -409,8 +409,11 @@ function onFooterResized (size) { // restore the state const currentState = currentWindow.state -const fallbackState = readState() || 'pinned' -refresh(currentState || fallbackState) +if (currentState) refresh(currentState) +else { + const fallbackState = readState() || 'pinned' + Layout.setWindowState(props.placement, fallbackState) +}