Unwanted behaviour of the reference strip
See original GitHub issueHi all,
I think I spoted an unwanted behaviour of the reference strip. I am Integrating Openseadragon into an Project Website. Here. I have around 1/3 of the Page to do so. As I have more than one picture to show, I thought, It might by nice to use the reference strip to allow the user to switch through the pictures. The problem is however, that my preview pictures are ridiculously small (see attached picture, those litle whtie dots within the black box are the preview pictures…). I think, it might be connected to the fact, that I use only one third of the page? Is there a possibility to tell the system how big the preview pictures should be?
This is the written code, I use:
var viewer = $wnd.OpenSeadragon({
element: where,
showRotationControl: true,
showFlipControl: true,
sequenceMode: true,
maxZoomLevel: 100,
prefixUrl: "scripts/openseadragon-bin-2.4.2/images/",
tileSources: source,
showReferenceStrip: true,
referenceStripSizeRatio: 0.5,
referenceStripHeight:100,
referenceStripWidth:100
});
viewer.addHandler("pre-full-page", function (data) {
data.preventDefaultAction=true;
openFullscreen();
});
function openFullscreen() {
if (where.requestFullscreen) {
where.requestFullscreen();
} else if (where.mozRequestFullScreen) {
where.mozRequestFullScreen();
} else if (where.webkitRequestFullscreen) {
where.webkitRequestFullscreen();
} else if (where.msRequestFullscreen) {
where.msRequestFullscreen();
}
}
referenceStripHeight and referenceStripWidth do not work in the expected way, as they do only influence the strip and not the dimensions of the preview pictures. They stay very small.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
@iangilman Yes, ReferenceStrip needs love…taking it on next, as I’ve had to dive into it to finish the current MouseTracker/events patch to fix some naughtiness.
Assigning to self…
Awesome!