[IMP] point_of_sale: no scrollbar in fullscreen mode

bzr revid: fva@openerp.com-20120716094637-n2mdh94pb147ggc0
This commit is contained in:
Frédéric van der Essen 2012-07-16 11:46:37 +02:00
parent 21832994f9
commit 6d9cf3fe2d
1 changed files with 5 additions and 2 deletions

View File

@ -1056,10 +1056,13 @@ instance.web.WebClient = instance.web.Widget.extend({
}
},
set_content_full_screen: function(fullscreen) {
if (fullscreen)
if (fullscreen){
$(".oe_webclient", this.$element).addClass("oe_content_full_screen");
else
$("body").css({'overflow-y':'hidden'});
}else{
$(".oe_webclient", this.$element).removeClass("oe_content_full_screen");
$("body").css({'overflow-y':'scroll'});
}
}
});