Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fix jsfiddle window configuration when the draggable bars are gone.
- // Somehow there was a spaz-out while dragging the horizontal bar between the html and js windows, and the html window became >100%, with net effect it obscured the menu bar, and more importantly the drag bar was not visible. Took me a while of poking around, but I finally fixed it.
- // From chrome JS console:
- decodeURIComponent(window.document.cookie) // this is the 'broken' value:
- "window_sizes={"w":["48.72495446265938%","51.27504553734062%"],"h":["29.33709449929478%","113.11475409836066%","37.19298245614035%","62.80701754385965%"]}; csrftoken=qHTiwV95S7vlt4VBeRQqeebW6LYeHOU9"
- // Note above: one of the window heights is 113% ! .. does not add up.
- // set it with the below, then close the tab. If a dialog box pops up, you fail.
- // Alternatively, you can visit a jsfiddle.net URL with "/show" at the end which will not have all the other windows and scripts loaded, but will let you access the cookies.
- // set the new value, close tab, then open a new tab on jsfiddle.net.
- // these numbers don't add up either, but after you drag the h/v window adjustment they will be fixed.
- document.cookie = "window_sizes=" + encodeURIComponent('{"w":["48%","35%"],"h":["29%","58%","37%","62%"]}') + ";path=/;domain=.jsfiddle.net;";
- // Edit:
- // the cookies appear to be session cookies, so it should be sufficient to close your browser.
- // Or the tabs, and delete cookies. But I swear Chrome saved the session cookies cross session...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement