Use fadeTo instead of fadeIn / fadeOut and CSS visibility instead of show / hide in order to preserve page layout

pull/172/head
Matthew Hasbach 10 years ago
parent 6ada1d0def
commit 5ba0987f52

@ -39,18 +39,18 @@
if (api.page.info().pages <= 1) {
if (config.style === 'fade') {
$pagination.stop().fadeOut(speed);
$pagination.stop().fadeTo(speed, 0);
}
else {
$pagination.hide();
$pagination.css('visibility', 'hidden');
}
}
else {
if (config.style === 'fade') {
$pagination.stop().fadeIn(speed);
$pagination.stop().fadeTo(speed, 1);
}
else {
$pagination.show();
$pagination.css('visibility', '');
}
}
};

Loading…
Cancel
Save