Fixed the footer position at the restaurant's page.
The footer position was going up at the restaurant's page. It was happening because the div.restaurant-items has the position:absolute style's attribute and the footer was placed right after the div.body. Now the div.body will have at least the same height that the div.restaurant-items has. (app.js:343)
This commit is contained in:
parent
1e29d0d9dd
commit
aab471a244
@ -339,6 +339,9 @@ App.page.restaurant = function(id) {
|
||||
// Appends the suggestion's form
|
||||
$('.main-content').append( App.suggestion.form() );
|
||||
|
||||
// As the div restaurant-items has position:absolute this line will make sure the footer will not go up.
|
||||
$('.body').css( { 'min-height' : $('.restaurant-items').height() } )
|
||||
|
||||
setTimeout(function() {
|
||||
var total = App.cart.updateTotal();
|
||||
App.suggestion.init();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user