Results 1 to 4 of 4

Thread: Weird Bug - (fixed)

  1. #1
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default Weird Bug - (fixed)

    (The script is programmed in FF2, and I have no expectations for it to work in other browsers.)

    In a script I am making, which so far creates desktop-like windows in the page has an odd bug I can't figure out. When I minimize a window through its minimize button and then move the minimized state, the gui object picks up the background it is over (in a rectangle the height of what the unminimized window is minus scrollbars) and carries it over to where I move the minimized titlebar.

    Here's a link to the page:
    http://trinithis.awardspace.com/Obje...ow/window.html

    To produce the bug, you can click the minimize button on the window labled "3", and then drag it across the other windows.


    For the script source codes:
    http://trinithis.awardspace.com/ObjectWindow/drag.js
    http://trinithis.awardspace.com/Obje...bjectViewer.js
    http://trinithis.awardspace.com/ObjectWindow/resize.js

    CSS:
    http://trinithis.awardspace.com/ObjectWindow/window.css


    Last edited by Trinithis; 08-11-2007 at 06:17 AM.
    Trinithis

  2. #2
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    Nevermind. I just fixed the bug. I realized that the area of the rectangle bug was the size and in the same position as the text area in the window minus scrollbars as if the height was dependent on its original height, and its width dependent on the minimized width.

    So upon minimize, I set the text area (.body) style to display: none, removing the bug. A few additions to the code sets the display back to what it was when needed has been added too.

    (Web code not updated, if you want to still see the bug.)
    Trinithis

  3. #3
    Join Date
    May 2006
    Location
    Alaska
    Posts
    163
    Thanks
    5
    Thanked 2 Times in 2 Posts

    Default

    It wasn't just on window 3, it was on all of them.

  4. #4
    Join Date
    May 2007
    Location
    USA
    Posts
    373
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default

    I know. I just said window 3 for demonstration purposes.
    Trinithis

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •