svn commit: r647555 - /lenya/trunk/src/modules/editors/usecases/insertAsset.jx

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Sun Apr 13 03:42:44 2008
New Revision: 647555

URL: http://svn.apache.org/viewvc?rev=647555&view=rev
Log:
Restrict displayed width of images on InsertAsset screen to 50px

Modified:
    lenya/trunk/src/modules/editors/usecases/insertAsset.jx

Modified: lenya/trunk/src/modules/editors/usecases/insertAsset.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/usecases/insertAsset.jx?rev=647555&r1=647554&r2=647555&view=diff
==============================================================================
--- lenya/trunk/src/modules/editors/usecases/insertAsset.jx (original)
+++ lenya/trunk/src/modules/editors/usecases/insertAsset.jx Sun Apr 13 03:42:44 2008
@@ -106,7 +106,9 @@
                       <jx:when test="${mimeType.startsWith('image/')}">
                         <!-- Add one to avoid dividing by 0 -->
                         <jx:set var="scaledWidth" value="${Packages.java.lang.Math.round(width / ( height + 1 ) * 32.0)}"/>
-                        <img src="${url}?lenya.module=svg&amp;height=32&amp;width=${scaledWidth}" style="height: 32px; vertical-align: middle; margin: 3px 0px;"/>&#160; 
+                        <div  style="width: 50px; overflow: hidden;">
+                          <img src="${url}?lenya.module=svg&amp;height=32&amp;width=${scaledWidth}" style="height: 32px; vertical-align: middle; margin: 3px 0px;"/>&#160;           
+                        </div>
                       </jx:when>
                       <jx:otherwise>
                         <jx:out value="${mimeType}"/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.