View Full Version : Automatically Resized & Positioned Window
Infidelvious
18-03-2008, 03:52 PM
Whenever I'd play iSketch in the past, I would resize my browser every time, then move it so that I can have other things open. I eventually came up with a way to automatically do this in JavaScript. It didn't dawn on me until now as to how I can share this with others. I hosted it here http://isketchery.googlepages.com/. Everything is self-explanatory.
Neat. It's not perfectly sized though, i still see a bit of background on the top and the left, but otherwise it's nice. And no address bar too, not that it'd be useful or anything lol. Good work.
Infidelvious
19-03-2008, 02:08 PM
Although it might not look it, it is a perfect fit. Flash objects seem to have natural buffers against the top and left most sides of the browser. Making the window any smaller does not affect the top and left boundaries, it only decreases the size of the flash object.
Thanks.
NoHints
19-03-2008, 02:32 PM
Heh, I remember your old thread (http://www.isketchforum.net/javascript-links-t2018.html); you didn't give up then :P
Whenever I play iSketch I generally keep the window full size anyway. The few times I've had other windows open at the same time it hasn't gone well - guessing into MSN etc.
Nateman
19-03-2008, 05:18 PM
That's pretty sweet dude. I think I might have to use that.
Infidelvious
19-03-2008, 09:52 PM
Heh, I remember your old thread (http://www.isketchforum.net/automatically-resized-positioned-t2249.html?t=2249); you didn't give up then :P
No, I don't give up. :) Do you mean this thread (http://www.isketchforum.net/javascript-links-t2018.html)? That was my only other one. The link you posted is this thread we're talking in now.
I'm glad that never went anywhere, this new method is better anyway, because it lets you choose where you want the window.
That's pretty sweet dude. I think I might have to use that.
Thanks.
NoHints
19-03-2008, 10:00 PM
Haha, yes I meant that one. Copied from the wrong address bar :P
I fail.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.