Changeset eb89313 in prototipo_portal_2018


Ignore:
Timestamp:
Oct 18, 2017, 3:50:25 PM (7 years ago)
Author:
José Sulbarán <jsulbaran@…>
Branches:
master
Children:
e35a1b8, e3349ca
Parents:
e3adbd3
Message:

Se agregaron las dimenciones del pdf

Location:
prototipo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • prototipo/index.html

    re3adbd3 reb89313  
    261261      </div>
    262262    </div>
    263   </footer><!-- End Footer -->
    264 -->
     263  </footer>--><!-- End Footer -->
     264
    265265
    266266
  • prototipo/static/js/docsDraggable.js

    r747e744 reb89313  
    8383        __id = __CANVAS.toDataURL()
    8484       
    85 
    86       $("#container1").attr("style", "background-image: url('"+__id+"')")
     85      var viewdimen = page.getViewport(1);
     86      console.log( "Width: " + viewdimen.width + ", Height: " + viewdimen.height);     
     87     
     88      $("#container1").attr("style", "background-image: url('"+__id+"');background-size: cover; background-repeat: no-repeat;  height:"+(viewdimen.height+40)+"px; width:"+(viewdimen.width+100)+"px");
     89     
    8790
    8891    });
Note: See TracChangeset for help on using the changeset viewer.