Provide information about the indented thumbnail size in the image browser XML.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3417 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2015-05-19 07:24:55 +00:00
parent 659b0e5fd8
commit f9f99a6cde
1 changed files with 6 additions and 0 deletions

View File

@ -259,6 +259,12 @@ public class ImageBrowser extends Table {
Image img = new Image(URL.getDispatcherPath() + url Image img = new Image(URL.getDispatcherPath() + url
+ resizeParam, a.getName()); + resizeParam, a.getName());
img.setBorder("0"); img.setBorder("0");
final Double width = m_thumbSize.getWidth();
final Double height = m_thumbSize.getHeight();
img.setWidth(Integer.toString(width.intValue()));
img.setHeight(Integer.toString(height.intValue()));
return new Link(img, url); return new Link(img, url);
} }