SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery hide displaying a big empty space

    Hello,

    I have a strange thing happening when hiding the whiteboard on the page

    http://www.learnintouch.com/whiteboard.html

    If you click on the link Cacher it hides the whiteboard, but then there is this big empty space coming up.

    I'd prefer that the hiding simply puts it as if there was nothing.

    Kind Regards,

    Stephane

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,264
    Mentioned
    115 Post(s)
    Tagged
    1 Thread(s)
    What should happen? It should always hide? If so, then you need to remove the iframe (whiteboard_url_iframe) out of the whiteboard_url_content div because it's got a fixed height of 300 - the textarea it swaps out for doesn't have a height specified, which is why the space grows.

    On a side note...holy scripting batman! There is a LOT of scripting on that page, and I would hate to see what happens if one of those scripts starts to fight with another....
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. Yes there is quite a lot of scripting on that page, but it's beiing used and does not yet conflict :-)

    It should always hide when clicking on the Cacher link.

    So I added a clearing of the iframe before hiding it and now it behaves nicely.

    $('#whiteboard_url_iframe').attr('src', '');

    Thanks !

  4. #4
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In fact, it does not behave so nicely after all, as it still displays an empty space when hiding, the empty space coming from the page content sliding down.


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
  •