Ensure that users with old default config don't end up with an out of bounds window

This commit is contained in:
Austin Warren 2019-06-28 13:48:06 -07:00
parent be2f2f4575
commit 0238515b42

View File

@ -30,7 +30,8 @@ export class DockingService {
}
const newBounds: Bounds = { x: 0, y: 0, width: 0, height: 0 }
const fill = this.config.store.appearance.dockFill
const fill = this.config.store.appearance.dockFill <= 1 ? this.config.store.appearance.dockFill : 1;
const [minWidth, minHeight] = this.hostApp.getWindow().getMinimumSize()
if (dockSide === 'left' || dockSide === 'right') {