aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawlUtmRueCOLddksWZN8zOVnseVrtRSxM58 <Per@web>2011-11-17 18:18:57 -0400
committeradmin <admin@branchable.com>2011-11-17 18:18:57 -0400
commita066e0405e22ed846cb21ec26b8ee972413a79e1 (patch)
treea95dba105476a6eb9b24765bda726662d1bee905 /doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
parente48ca145f6cc91c819fdba8b8998b95f15744b1b (diff)
downloadikiwiki-a066e0405e22ed846cb21ec26b8ee972413a79e1.tar
ikiwiki-a066e0405e22ed846cb21ec26b8ee972413a79e1.tar.gz
Diffstat (limited to 'doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn')
-rw-r--r--doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn20
1 files changed, 1 insertions, 19 deletions
diff --git a/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn b/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
index c8196b412..6e98a2369 100644
--- a/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
+++ b/doc/bugs/resized_img_with_only_width_or_height_breaks_ie.mdwn
@@ -4,22 +4,4 @@ In those cases img plugin do generate HTML with the missing attribute as "empty"
If we instead always get the resulting the width and height from the resized image, and uses those values in the img attrs, we make IE happy (and all other renders as well).
-Inline patch:
-
-diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
-index b98e843..398e9bc 100644
---- a/IkiWiki/Plugin/img.pm
-+++ b/IkiWiki/Plugin/img.pm
-@@ -132,9 +132,9 @@ sub preprocess (@) {
- $imglink = $file;
- }
- }
--
-- $dwidth = $im->Get("width") unless defined $dwidth;
-- $dheight = $im->Get("height") unless defined $dheight;
-+ # get true image width and height from resized image attributes
-+ $dwidth = $im->Get("width");
-+ $dheight = $im->Get("height");
- }
- }
- else {
+A patch (tested and deployed) is sitting waiting in my git repository.