]> dev.renevier.net Git - syp.git/blobdiff - inc/html/index.php
removes popup scrollbars in firefox. Try to avoid them as much as possible in IE
[syp.git] / inc / html / index.php
index 5de0a53497bb05650d9a294cdfe5f4e6dd3bc674..16409aa7ff22580ae0c35bcda24da57ac462e8f6 100644 (file)
@@ -31,7 +31,11 @@ if (defined ("POPUPPOS")) {
     <link rel="stylesheet" href="./media/syp.css" type="text/css">
     <style type="text/css">
         .olPopup {
     <link rel="stylesheet" href="./media/syp.css" type="text/css">
     <style type="text/css">
         .olPopup {
-            <?php printf("_width: %dpx;\n", ($thumbsmaxsize + 40))?>
+            <?php printf("_width: expression(Math.min(parseInt(this.scrollWidth) + 7, %d) + 'px');\n", $thumbsmaxsize)?>
+        }
+        .olPopup p {
+            <?php printf("max-width: %dpx;\n", $thumbsmaxsize - 20)?>
+
         }
         .olPopup img {
             <?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>
         }
         .olPopup img {
             <?php printf("max-height: %dpx;\n", $thumbsmaxsize)?>