Adding to SP3 : fixing images and others
This commit is contained in:
14
jquery/databap.js
vendored
14
jquery/databap.js
vendored
@@ -15,8 +15,8 @@ function Databap()
|
||||
self.consts.app_image_folder = 'images/';
|
||||
self.consts.add_code_text = 'Copier le code ici.';
|
||||
self.consts.search_box_text = 'Recherche...';
|
||||
self.consts.maxHeight = $(window).height();
|
||||
self.consts.maxWidth = $(window).width();
|
||||
self.consts.maxHeight = $(window).innerHeight();
|
||||
self.consts.maxWidth = $(window).innerWidth();
|
||||
self.consts.time = (new Date()).getTime();
|
||||
self.consts.transTime = 200;
|
||||
|
||||
@@ -408,15 +408,15 @@ function Databap()
|
||||
{
|
||||
//Maximize main div height to fill up the page
|
||||
var iPageHeight = $('body').outerHeight(true);
|
||||
var iWindowHeight = $(window).outerHeight(true);
|
||||
var iWindowHeight = $(window).innerHeight();
|
||||
self.$main.height('+='+(iWindowHeight - iPageHeight));
|
||||
self.$menu.height($('#main_container').height());
|
||||
|
||||
//Update size
|
||||
self.consts.maxHeight = $(window).height();
|
||||
self.consts.maxWidth = $(window).width();
|
||||
self.consts.pageMaxHeight = self.$main.height();
|
||||
self.consts.pageMaxWidth = self.$main.width();
|
||||
self.consts.maxHeight = $(window).innerHeight();
|
||||
self.consts.maxWidth = $(window).innerWidth();
|
||||
self.consts.pageMaxHeight = self.$main.innerHeight();
|
||||
self.consts.pageMaxWidth = self.$main.innerWidth();
|
||||
|
||||
//Page event
|
||||
self.onResize();
|
||||
|
||||
Reference in New Issue
Block a user