[*NEW* PATCH] Making <img style="max-width: 100%" /> work

Luís Pedro Coelho luis at luispedro.org
Thu Aug 18 16:37:07 BST 2005


Hi,

I committed my previous patch and here's a new one which makes percentage 
max-widths (and heights) work correctly (the previous one fixed pixel values, 
not percentages).

Previously m_minWidth would be set to the full width of the picture (bc 
RenderReplaced::calcMinMaxWidth() got called when the parent object still had 
width=0) and this would mess things up later since even though the width 
value was calculated correctly, render_box.cpp:778 would reset it.

ok to commit?

Actually I'm not too sure that minWidth().isPercent() (bzw minHeight) belongs 
in the condition, what do you think?

bye,
-- 
luispedro
function clickon () {
        kfmclient exec "$1"
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max-min.patch
Type: text/x-diff
Size: 683 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050818/db7ce31d/attachment.patch>


More information about the kfm-devel mailing list