[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/khtml/rendering
From:       Luís Pedro Coelho <luis () luispedro ! org>
Date:       2005-08-26 20:51:43
Message-ID: 1125089503.895323.30773.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 453694 by luis_pedro:

Make <img style="max-height: 80%" /> work


 M  +3 -1      render_replaced.cpp  


--- branches/KDE/3.5/kdelibs/khtml/rendering/render_replaced.cpp #453693:453694
@@ -72,7 +72,9 @@
     m_width = calcReplacedWidth();
     m_width += paddingLeft() + paddingRight() + borderLeft() + borderRight();
 
-    if ( style()->width().isPercent() || style()->height().isPercent() ) {
+    if ( style()->width().isPercent() || style()->height().isPercent() || 
+		    style()->maxWidth().isPercent() || style()->maxHeight().isPercent() ||
+		    style()->minWidth().isPercent() || style()->minHeight().isPercent() ) {
         m_minWidth = 0;
         m_maxWidth = m_width;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic