jquery - Empty white space at the end of document after $.slideUp() -
i have images content slide down , in order show/hide pictures. slide toggle works , page stretches content, goes normal when slide up.
unless, scroll bit in direction before sliding up. if scroll 1 pixel or down, sliding images hide them leave empty white space @ bottom of document.
i set border around body or html see if had weird size, resize correctly not problem.
my html , body tags don't have margin or padding, , displays correctly. seems document problem. example, here console outputs before slidetoggle:
$('body').height() -> 2855.578125 $('html').height() -> 2984.375 $(document).height() -> 2984
then here values after sliding images:
$('body').height() -> 2855.578125 $('html').height() -> 2984.375 $(document).height() -> 5957
as can see, body , html tags have resized original value. document seems corrupted. noticed if use console hide overflow of html set auto, resets height , fixes problem page jerks around bit.
i don't have ideas anymore. searched google , extensively, many people have similar problems nobody has same exact strange bug. if knows how reset height recalculate automatically, ok. don't care trying figure out what's wrong anymore, want rid of white space.
Comments
Post a Comment