Hi there,
I've got the following situation where stickykit won't recalc.
Am i doing something wrong or is this a bug?
// set stickykit
self.$element.stick_in_parent( { 'offset_top' : 70 } #);
// get html data by ajax
var $ajaxCommentsData = ajax.ajaxGet( $url, 'html' );
$ajaxCommentsData.success( function ( data ) {
var $data = $(data);
// place new html in (left column, which makes parent height larger)
$leftColumn.append( $data );
// recalc sticky caus of the new added html by ajax (right column is sticky)
$(document.body).trigger("sticky_kit:recalc");
});
This doesn't work either
self.$element.stick_in_parent( { 'offset_top' : 70 }); //works
self.$element.parent().css( 'height', '5000px' ); //works
$(document.body).trigger("sticky_kit:recalc"); //doens't recalc
For what is worth, :detach does work
Thanks in advance
Hi there,
I've got the following situation where stickykit won't recalc.
Am i doing something wrong or is this a bug?
This doesn't work either
For what is worth, :detach does work
Thanks in advance