Skip to content
Snippets Groups Projects
Commit f5d2d990 authored by tpylak's avatar tpylak
Browse files

LMS-1817 set the tile image width

SVN: 18635
parent 5d680cf0
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ public class ImageUrlUtils ...@@ -44,7 +44,7 @@ public class ImageUrlUtils
String imageURL = String imageURL =
createDatastoreImageUrl(sessionId, images, channel, row, col, imageWidth, createDatastoreImageUrl(sessionId, images, channel, row, col, imageWidth,
imageHeight, createImageLinks); imageHeight, createImageLinks);
addUrlWidget(container, imageURL, imageHeight); addUrlWidget(container, imageURL, imageWidth, imageHeight);
} }
/** /**
...@@ -58,7 +58,7 @@ public class ImageUrlUtils ...@@ -58,7 +58,7 @@ public class ImageUrlUtils
String imageURL = String imageURL =
createDatastoreImageUrl(sessionId, images, channel, channelStackRef, imageWidth, createDatastoreImageUrl(sessionId, images, channel, channelStackRef, imageWidth,
imageHeight); imageHeight);
addUrlWidget(container, imageURL, imageHeight); addUrlWidget(container, imageURL, imageWidth, imageHeight);
} }
/** generates URL of an image on Data Store server */ /** generates URL of an image on Data Store server */
...@@ -79,10 +79,10 @@ public class ImageUrlUtils ...@@ -79,10 +79,10 @@ public class ImageUrlUtils
} }
/** creates a widget which displays the specified URL and adds it to the container */ /** creates a widget which displays the specified URL and adds it to the container */
private static void addUrlWidget(LayoutContainer container, String url, int height) private static void addUrlWidget(LayoutContainer container, String url, int width, int height)
{ {
Component tileContent = new Html(url); Component tileContent = new Html(url);
tileContent.setHeight("" + height); tileContent.setSize("" + width, "" + height);
PlateStyleSetter.setPointerCursor(tileContent); PlateStyleSetter.setPointerCursor(tileContent);
container.add(tileContent); container.add(tileContent);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment