Commit 2b408eb1de9ddb4dd71967b6c83081a7da77297f
1 parent
af90f68e
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
classesjs/classe_i3geo.js
@@ -800,7 +800,6 @@ var i3GEO = { | @@ -800,7 +800,6 @@ var i3GEO = { | ||
800 | * Return: {array} - [w,h] | 800 | * Return: {array} - [w,h] |
801 | */ | 801 | */ |
802 | calculaTamanho : function() { | 802 | calculaTamanho : function() { |
803 | - alert(screen.availWidth) | ||
804 | var diminuix, diminuiy, menos, novow, novoh, w, h, temp, Dw, Dh; | 803 | var diminuix, diminuiy, menos, novow, novoh, w, h, temp, Dw, Dh; |
805 | diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN; | 804 | diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN; |
806 | diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN; | 805 | diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN; |
@@ -846,6 +845,14 @@ var i3GEO = { | @@ -846,6 +845,14 @@ var i3GEO = { | ||
846 | ]; | 845 | ]; |
847 | Dw = YAHOO.util.Dom.getDocumentWidth(); | 846 | Dw = YAHOO.util.Dom.getDocumentWidth(); |
848 | Dh = YAHOO.util.Dom.getDocumentHeight(); | 847 | Dh = YAHOO.util.Dom.getDocumentHeight(); |
848 | + | ||
849 | + if(Dw > screen.availWidth){ | ||
850 | + Dw = screen.availWidth; | ||
851 | + } | ||
852 | + if (Dh > screen.availHeight){ | ||
853 | + Dh = screen.availHeight; | ||
854 | + } | ||
855 | + | ||
849 | novow = Dw | 856 | novow = Dw |
850 | - i3GEO.scrollerWidth; | 857 | - i3GEO.scrollerWidth; |
851 | novoh = Dh; | 858 | novoh = Dh; |