Home › Forums › JavaScript › Function not being updated correctly › Reply To: Function not being updated correctly
December 27, 2015 at 8:15 am
#236201
Alen
Participant
You need to call calcLeftWrapper();
when the page is done fading in.
In your code, try:
/* code emmited for brevity */
$mainContent.fadeIn(200, function() {
$pageWrap.animate({
height: baseHeight + $mainContent.height() + "px"
});
calcLeftWrapper(); /* fn call */
});