You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2009/10/30 19:29:59 UTC
[jira] Commented: (WICKET-2192) Image should automatically set
width and height attributes in markup
[ https://issues.apache.org/jira/browse/WICKET-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772030#action_12772030 ]
Martin Grigorov commented on WICKET-2192:
-----------------------------------------
Is this functionality really needed ?
As far as I know if there are no width/height attributes to <img> element then the browser reads that information from the image and use it. Width and height are needed only if you need to manipulate them or preserve the space before the image is actually downloaded.
Check:
- http://www.w3.org/TR/REC-html40/struct/objects.html#adef-width-IMG
- http://www.htmlcodetutorial.com/images/_IMG_WIDTH.html
> Image should automatically set width and height attributes in markup
> --------------------------------------------------------------------
>
> Key: WICKET-2192
> URL: https://issues.apache.org/jira/browse/WICKET-2192
> Project: Wicket
> Issue Type: Improvement
> Affects Versions: 1.4-RC2
> Reporter: Esko Suomi
> Priority: Trivial
> Attachments: ImageDocumentProcessor.java
>
>
> org.apache.wicket.markup.html.image.Image component (and all possible derivates) should add width and height attributes of the image it represents automatically to markup to allow for faster correct rendering of the actual page. For example when rendering a table with images in table cells the table cell width may vary a lot during loading of the page and its contents which causes the table to jitter around while loading if image dimension attributes aren't set.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.