-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TF window opening outside the display #189
Comments
Yes, there is another issue open - I'll find it. You can also double-click the TF icon in any Chrome window to summon the TF window to that Chrome window. Position backup is an interesting idea - we could theoretically support any number of saved window positions. |
But the size and position wouldn't be identical to the previous saved infos (IIRC).
exactly what I though |
Summon changes position but not size, as I recall. Anyway, PRs welcome! :) |
;) I'll look into it, and see what I can do. |
I've just got the error right now, and despite the stored value of My backed-up values are |
Related to #111 and #141, but neither is exactly the same as this one :) . I'll tag it. Summon is: Lines 61 to 83 in 27d8b2d
So, yes, summon does currently clip size based on the Chrome window to which you summon it. So the backed-up position is (3,2) --- where did the window appear? If you do a |
I'll check Here is the procedure I always follow when closing chrome: I close all windows one at a time, always finishing with my first/main window (if it has pined tabs). The solution I had in mind for some time now, is to prevent TF storing new values if "left" and/or "top" are way off in the negative value. |
Edit: One thing I'm wondering now. Is Edit: |
That I had one thought - in two places (lines 2962 and 2976), we Lines 2953 to 2981 in 27d8b2d
In that code, I'm not sure how to test that other than logging, but I am interested to know if you have any thoughts. |
We can probably do that for If worst comes to worst, we can make a profiling version of TF and run a timer to check every frame whether the numbers have gone wonky. That would get us closer (at a rather severe cost). |
I've checked. chrome.storage.local.get( "tabfern-window-location", function(items){
console.info(items);
console.info( JSON.stringify(items) );
}); consistently gives Edit: Edit: |
Ah! Yes, indeed --- that's a leftover from Win95, as I recall (nope - WinNT - Old New Thing). I see also this SO question about the same. Well, whaddya know! Confirmed!With the developer console set to
After minimizing TF:
Now, shortly after that, I got ---
because the resize-detection timer expired and
I then restored the TF window and:
FixSo the fix should be as simple as:
As far as I know, only Would you be willing to send in a PR? Don't do so until Oct. 1 ;) . Thanks! Additional confirmationI minimized TF, waited until it saved size, closed it without restoring it, then hit the toolbar button. It appeared in the UL corner of the screen for a moment, then disappeared. In the console, the saved-position data indeed had the Thanks for your help figuring this out! |
Please see updated contribution guidelines. Thanks! |
I have tried a fix on a clone of the current version 0.2.0.1340. It works. Question: Side note |
Win7 32 should be fine - windows git and Cygwin both still support x86, as far as I know. I think using only Thank you! |
I recall reading another issue mentioning this bug, but I can't find it. (Edit from cxw #18 and #141 are closest; also related to #111)
I'm running chrome with TF on a small screen (1280x800). It works well for everything but all windows are maximized (not TF obviously). It's probably the reason for this bug to happen: I have used TF on another computer with a much bigger display, chrome not maximized, and never TF out of sight.
Gives always the same value in case of error:
{"tabfern-window-location":{"height":200,"left":-32000,"top":-32000,"width":160}}
To work around this problem, I have devised these scriplets:
I have used scriptlet 1 once, and since then I use scriplet 2 to "reset" TF window:
focus TF window (even if not visble), F12 to open console, run script 2, close devtools, F5 (reload TF window)
The text was updated successfully, but these errors were encountered: