There must be some CSS you're not telling us about. Otherwise, containers size themselves to their content.

that turned out to be the slideDown effect.

I called slideUp before loading the content.  Then calculating the new height and then call slidedown.

I have tried:
  • $('#content').css("height", newHeight).slowDown('slow');
  • $('#content').slowDown('slow');
neither work, taking out the slide effect is the only way to get this going? unless I have these height issues.




On 28/10/06, Yehuda Katz <[EMAIL PROTECTED]> wrote:
There must be some CSS you're not telling us about. Otherwise, containers size themselves to their content.

-- Yehuda

On 10/28/06, Sam Sherlock < [EMAIL PROTECTED]> wrote:
Hi,

I am loading content into a div using JSON thats fine.

The length of content varies (some short some long & bulky)

When I load content that's shorter than the currently displayed content
I get a lot f wasted space.  Worst still is when your scrolled part way
down the page you can face a seemingly empty screen.

I have tried re-adjusting the height of the page to the best fit the new
content based on the some total of the new contents height but not much joy


and then applying it like so:           
      newHeight = (parseInt($("div#innerMain").css("height"))+"px");
      $("div#content").css("height", newHeight).slideDown('slow');


has anyone got any pointers?

also as a secondary thought I am considering using a technique like this

http://www.agape.org.uk/workplace/ (click the menu on the left of the screen)

is there a jquery plugin to do that?

Thinking it would be great to scroll to top once the content has loaded.

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to