[bugfix] xodo pdf pos does not match
This commit is contained in:
parent
19ca96edc0
commit
d63ed0e737
|
@ -209,7 +209,6 @@ LoadArrangement() {
|
||||||
try {
|
try {
|
||||||
FileRead, temp, %ARRANGEMENT_PATH%
|
FileRead, temp, %ARRANGEMENT_PATH%
|
||||||
ARRANGEMENT := JSON.Load(temp)
|
ARRANGEMENT := JSON.Load(temp)
|
||||||
ShowObject(ARRANGEMENT)
|
|
||||||
} catch {
|
} catch {
|
||||||
ARRANGEMENT := Object()
|
ARRANGEMENT := Object()
|
||||||
}
|
}
|
||||||
|
@ -239,6 +238,7 @@ WatchNewWindow() {
|
||||||
classPath := GetActiveWindowClassPath()
|
classPath := GetActiveWindowClassPath()
|
||||||
if ARRANGEMENT.HasKey(classPath) {
|
if ARRANGEMENT.HasKey(classPath) {
|
||||||
pos := ARRANGEMENT[classPath]
|
pos := ARRANGEMENT[classPath]
|
||||||
|
WinRestore, A
|
||||||
WinMove, A,, pos[1], pos[2], pos[3], pos[4]
|
WinMove, A,, pos[1], pos[2], pos[3], pos[4]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -267,8 +267,7 @@ GetSelectedText() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowDebug() {
|
ShowDebug() {
|
||||||
global ARRANGEMENT
|
ShowActiveWinGeometry()
|
||||||
ShowObject(ARRANGEMENT)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowObject(obj) {
|
ShowObject(obj) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user