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-94f89814c4dfmaster
parent
659b0e5fd8
commit
f9f99a6cde
|
|
@ -259,6 +259,12 @@ public class ImageBrowser extends Table {
|
|||
Image img = new Image(URL.getDispatcherPath() + url
|
||||
+ resizeParam, a.getName());
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue