parent
39f4237cde
commit
af1da8fc0a
@ -55,14 +55,16 @@ export class WindowStateTracker {
|
|||||||
|
|
||||||
getOptions(options: any) {
|
getOptions(options: any) {
|
||||||
const result = Object.assign(options, {
|
const result = Object.assign(options, {
|
||||||
width: this.width,
|
|
||||||
height: this.height,
|
|
||||||
state: this.state,
|
state: this.state,
|
||||||
});
|
});
|
||||||
|
if (result.state !== "maximized") {
|
||||||
|
result.width = this.width;
|
||||||
|
result.theight = this.height;
|
||||||
if (this.top >= 0) {
|
if (this.top >= 0) {
|
||||||
result.top = this.top;
|
result.top = this.top;
|
||||||
result.left = this.left;
|
result.left = this.left;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user