- Image search expand box, adjust javascript hs padtominsize parameter, to make sure expand box doesn't shrink on small images

- asure ImageResult.imagetext has value for the link text (use filename if no alt text given)
pull/8/head
reger 10 years ago
parent 8b35656007
commit 1d8e1e4bac

@ -49,7 +49,7 @@ focusTitle : 'Click to bring to front',
allowMultipleInstances: true,
numberOfImagesToPreload : 5,
captionSlideSpeed : 1, // set to 0 to disable slide in effect
padToMinWidth : false, // pad the popup width to make room for wide caption
padToMinWidth : true, // pad the popup width to make room for wide caption
outlineWhileAnimating : 2, // 0 = never, 1 = always, 2 = HTML only
outlineStartOffset : 3, // ends at 10
fullExpandTitle : 'Expand to actual size',

@ -1630,7 +1630,7 @@ public final class SearchEvent {
this.sourceUrl = sourceUrl;
this.imageUrl = imageUrl;
this.mimetype = mimetype;
this.imagetext = imagetext;
this.imagetext = imagetext.isEmpty() ? imageUrl.getFileName() : imagetext;
this.width = width;
this.height = height;
this.fileSize = fileSize;

Loading…
Cancel
Save