• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Break my javascript program - Round 2

RandomFool

Diamond Member
I think it's really almost done this time around and I'm trying to find any bugs in it before I call it quits for real this time. You can't make the window smaller than it's initial size. I've also gotten reports that you occasionally can't drag in one direction and that the window size gets all funky when you minimize/maximize and restore in some unknown order. I haven't been able to reproduce either of those bugs so I'm not sure what's going on. If someone does find a problem please let me know what browser you're using.

http://www.randomfool.net/window

Thanks!

-Ryan
 
Seems to have some rendering problems in Linux/Firefox 2.0.

http://xtknight.atothosting.com/images/misalign1.png
http://xtknight.atothosting.com/images/misalign2.png
http://xtknight.atothosting.com/images/misalign3.png (window smaller, text overflow. change overflow property?)

Also, what's the difference between the left two buttons when it's minimized? Is "Open Window" supposed to do anything additional than what is already there?

Cool but needs work at least on my config. I wonder if it could all be done in CSS, too?
 
Yikes that's ugly. It looks like the text is to big for some reason. I'll have to get on that.

The + button should maximize the window and the other weird loking one should just restore it to it's old size.
 
Hey, it seems to look rather perfect on Firefox 2/Windows. So it's some kind of font problem maybe. Are you hard coding spacing based on preconceived font sizes, perhaps? Try using 'em' instead of 'px' for some spacing, maybe that'll fix it.

When you maximize it, minimize it, then click the "weird looking" button, it appears maximized again which is to be expected, but you can't resize it anymore after that so you're stuck with it being maximized, it seems.
 
the first problem is definitely a font issue, I'll have to play with the spacing a bit to fix it.
As for the second issue, I forgot to re-apply the drag and resize functions when you max, min and restore.

I can't ever seem to finish this thing. Thanks for the feedback!
 
Seems pretty cool. I'm not sure how useful it would be to an actual website, but it could allow people to customize the layout of a site. Have some feature that saves position and size of the floating divs.
 
It's looking better and better. Overflow seems to have been fixed, and only one button is off the title bar now. And it resizes after being maximized and restored. Nice. There doesn't appear to be anything wrong with the "Open Window" link...it's just that I had no idea what it was supposed to do when I tried it before.

http://xtknight.atothosting.com/images/misalign4.png
 
Nice...I think I managed to get everything fixed now. Open window should probably look more like a button or have a better label. I should probably include a key for what the buttons are supposed to do as well.

and for the record my LCD screen isn't that great. I should probably buy a nicer one.

Thanks again for all the help!
 
seems to work perfectly in Opera 9.21 on windows xp for me. not sure how useful this would be, but it works perfectly for me.
 
I tested it in Opera for the first time last night and dragging and resizing wasn't working for me either.

I got dragging and resizing working but now the min/max/restore/close buttons don't work. I think it's because Opera is reloading the page whenever I click on a link regardless of what the link does. Opera hates me.
 
After clicking Maximize from the default size and clicking the Restore button to un-maximize it, it remains at maximum size but is now resizable. I would think a more natural behavior would be to reduce it back down to its previous size (perhaps store the size somewhere when the Maximize button is clicked?)
 
Back
Top