Commit 2b408eb1de9ddb4dd71967b6c83081a7da77297f

Authored by Edmar Moretti
1 parent af90f68e

--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 800 * Return: {array} - [w,h]
801 801 */
802 802 calculaTamanho : function() {
803   - alert(screen.availWidth)
804 803 var diminuix, diminuiy, menos, novow, novoh, w, h, temp, Dw, Dh;
805 804 diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN;
806 805 diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN;
... ... @@ -846,6 +845,14 @@ var i3GEO = {
846 845 ];
847 846 Dw = YAHOO.util.Dom.getDocumentWidth();
848 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 856 novow = Dw
850 857 - i3GEO.scrollerWidth;
851 858 novoh = Dh;
... ...