0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-11-05 23:23:22 +01:00
doodle3d-connect/js/libs/jquery.mobile/demos/popup-image-scaling/popup-image-scaling.js
peteruithoven f247f1b3dc Added jQuery and jQuery mobile
Needed for offline development
2014-04-24 12:13:53 +02:00

9 lines
230 B
JavaScript

$( document ).on( "pagecreate", function() {
$( ".photopopup" ).on({
popupbeforeposition: function() {
var maxHeight = $( window ).height() - 60 + "px";
$( ".photopopup img" ).css( "max-height", maxHeight );
}
});
});