Index: lams_central/web/css/thickbox.css
===================================================================
diff -u -r71ee774107e638c288ec369356769efc7e0db9ce -rd28a91914e8858e0fbc045fc9313e3b50a309c45
--- lams_central/web/css/thickbox.css (.../thickbox.css) (revision 71ee774107e638c288ec369356769efc7e0db9ce)
+++ lams_central/web/css/thickbox.css (.../thickbox.css) (revision d28a91914e8858e0fbc045fc9313e3b50a309c45)
@@ -36,10 +36,6 @@
-moz-opacity: 0.75;
opacity: 0.75;
}
-* html #TB_overlay { /* ie6 hack */
- position: absolute;
- height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
-}
#TB_window {
position: fixed;
background: #ffffff;
@@ -48,13 +44,12 @@
display:none;
border: 4px solid #525252;
text-align:left;
- top:50%;
- left:50%;
+ margin-left: auto;
+ margin-right: auto;
+ left: 0;
+ right: 0;
+ top: 0;
}
-* html #TB_window { /* ie6 hack */
-position: absolute;
-margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
-}
#TB_window img#TB_Image {
display:block;
margin: 15px 0 0 15px;
@@ -112,10 +107,6 @@
margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
background-image: url(../images/loadingAnimation.gif); /* modified by LAMS */
}
-* html #TB_load { /* ie6 hack */
-position: absolute;
-margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
-}
#TB_HideSelect{
z-index:99;
position:fixed;
@@ -129,23 +120,22 @@
height:100%;
width:100%;
}
-* html #TB_HideSelect { /* ie6 hack */
- position: absolute;
- height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
-}
#TB_iframeContent{
clear:both;
border:none;
margin-bottom:-1px;
- margin-top:1px;
_margin-bottom:1px;
}
/* Added by LAMS. Enables scrolling on iOS devices. */
#TB_window {
+ height:100%;
+ width:90%;
+ max-width: 1200px;
+}
+#TB_iframeContent {
overflow-y: auto !important;
-webkit-overflow-scrolling: touch !important;
+ height:100%;
+ width:100%;
}
-#TB_iframeContent, #TB_overlay, #TB_window {
- height:100% !important;
-}
Index: lams_central/web/includes/javascript/thickbox.js
===================================================================
diff -u -r71ee774107e638c288ec369356769efc7e0db9ce -rd28a91914e8858e0fbc045fc9313e3b50a309c45
--- lams_central/web/includes/javascript/thickbox.js (.../thickbox.js) (revision 71ee774107e638c288ec369356769efc7e0db9ce)
+++ lams_central/web/includes/javascript/thickbox.js (.../thickbox.js) (revision d28a91914e8858e0fbc045fc9313e3b50a309c45)
@@ -97,33 +97,8 @@
imgPreloader = new Image();
imgPreloader.onload = function(){
imgPreloader.onload = null;
-
- // Resizing large images - orginal by Christian Montoya edited by me.
- var pagesize = tb_getPageSize();
- var x = pagesize[0] - 150;
- var y = pagesize[1] - 150;
- var imageWidth = imgPreloader.width;
- var imageHeight = imgPreloader.height;
- if (imageWidth > x) {
- imageHeight = imageHeight * (x / imageWidth);
- imageWidth = x;
- if (imageHeight > y) {
- imageWidth = imageWidth * (y / imageHeight);
- imageHeight = y;
- }
- } else if (imageHeight > y) {
- imageWidth = imageWidth * (y / imageHeight);
- imageHeight = y;
- if (imageWidth > x) {
- imageHeight = imageHeight * (x / imageWidth);
- imageWidth = x;
- }
- }
- // End Resizing
- TB_WIDTH = imageWidth + 30;
- TB_HEIGHT = imageHeight + 60;
- $("#TB_window").append("" + "