Remove jquery animate, juste modify div height.

This commit is contained in:
Mikaël Ates 2016-01-22 17:52:14 +01:00
parent c6c1346518
commit e724d05165
1 changed files with 4 additions and 11 deletions

View File

@ -134,18 +134,11 @@
}
$('div#controlbar').empty();
$('div#controlbar').append(content);
$('div#content-1').animate({
height: "88%",
}, 300, "linear", function() {
$('div#controlbar').fadeIn();
}
);
$('div#content-1').height('88%');
$('div#controlbar').fadeIn();
} else {
$('div#controlbar').fadeOut(500, function(){
$('div#content-1').animate({
height: "100%",
}, 300, "linear");
});
$('div#controlbar').fadeOut(500);
$('div#content-1').height('100%');
}
});
}