isWithinBounds check removed. see #685
This commit is contained in:
parent
6ca4687b3e
commit
931e95d314
1 changed files with 2 additions and 12 deletions
|
|
@ -786,18 +786,8 @@ function applyWindowPositionAndSize(win_options, prefs){
|
|||
taLog.log("Applying saved window dimensions: width=" + prefs.chatgpt_win_width + ", height=" + prefs.chatgpt_win_height);
|
||||
}
|
||||
if((prefs.chatgpt_win_top != '') && (prefs.chatgpt_win_left != '')){
|
||||
// Check if the saved position is within the current screen bounds (supports multiple monitors)
|
||||
let isWithinBounds = (
|
||||
prefs.chatgpt_win_left >= window.screen.availLeft &&
|
||||
prefs.chatgpt_win_top >= window.screen.availTop &&
|
||||
prefs.chatgpt_win_left < (window.screen.availLeft + window.screen.availWidth) &&
|
||||
prefs.chatgpt_win_top < (window.screen.availTop + window.screen.availHeight)
|
||||
);
|
||||
|
||||
if (isWithinBounds) {
|
||||
win_options.top = prefs.chatgpt_win_top;
|
||||
win_options.left = prefs.chatgpt_win_left;
|
||||
}
|
||||
win_options.top = prefs.chatgpt_win_top;
|
||||
win_options.left = prefs.chatgpt_win_left;
|
||||
taLog.log("Applying saved window position: top=" + prefs.chatgpt_win_top + ", left=" + prefs.chatgpt_win_left);
|
||||
}
|
||||
return win_options;
|
||||
|
|
|
|||
Loading…
Reference in a new issue