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

9 lines
230 B
JavaScript
Raw Normal View History

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