Fixed a little issue with IE compatibility in the tagging bits
authorDan
Sat, 16 Feb 2008 23:15:49 -0500
changeset 19 08bf8aa2f0ab
parent 18 c1c398349651
child 21 0475c9ed1386
Fixed a little issue with IE compatibility in the tagging bits
plugins/gallery/canvas.js
plugins/gallery/viewimage.php
--- a/plugins/gallery/canvas.js	Sat Feb 16 23:07:31 2008 -0500
+++ b/plugins/gallery/canvas.js	Sat Feb 16 23:15:49 2008 -0500
@@ -83,8 +83,8 @@
   div_inner.style.border = '1px solid #FFFFFF';
   if ( IE )
   {
-    div_inner.style.width = '1px';
-    div_inner.style.height = '1px';
+    div_inner.style.width = '100%';
+    div_inner.style.height = '100%';
   }
   else
   {
--- a/plugins/gallery/viewimage.php	Sat Feb 16 23:07:31 2008 -0500
+++ b/plugins/gallery/viewimage.php	Sat Feb 16 23:15:49 2008 -0500
@@ -289,7 +289,7 @@
   $img_url  = makeUrlNS('Special', 'GalleryFetcher/preview/' . $img_id);
   $img_href = makeUrlNS('Special', 'GalleryFetcher/full/' . $img_id);
   
-  echo '<div snapr:imgid="' . $img_id . '"><img alt="Image preview (640px max width)" src="' . $img_url . '" id="snapr_preview_img" style="border-width: 0; margin-bottom: 5px; display: block;" /></div>';
+  echo '<div snapr:imgid="' . $img_id . '" style="width: 1px;"><img alt="Image preview (640px max width)" src="' . $img_url . '" id="snapr_preview_img" style="border-width: 0; margin-bottom: 5px; display: block;" /></div>';
   
   echo '<table border="0" width="100%"><tr><td style="text-align: left; width: 24px;">';