Skip to content

Commit

Permalink
Fix images dimensions in ApplicationsTileGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
ngeorges-cnrs committed Nov 14, 2024
1 parent f0e2410 commit bdc6c86
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public ApplicationsTileGrid(String tileName) {

DetailViewerField imageField = new DetailViewerField("picture");
imageField.setType("image");
// SmartGWT 13 now sets explicit width and height attributes on <img> tags,
// which default to all available space in the tile, causing image distortion.
// So we set the explicit width/height of our icons, which are all 48x48.
imageField.setImageHeight(48);
imageField.setImageWidth(48);

DetailViewerField commonNameField = new DetailViewerField("applicationName");
commonNameField.setCellStyle("normal");
Expand Down

0 comments on commit bdc6c86

Please sign in to comment.