Skip to content

Commit f6f4e67

Browse files
committed
fixes to initial zoom, fullscreen behavior in OpenSeaDragon
1 parent 603cb4e commit f6f4e67

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

assets/js/components/image_viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function initOSDViewer(el) {
4747
visibilityRatio: 0.5,
4848
maxZoomPixelRatio: 4,
4949
minZoomLevel: 0.5,
50-
defaultZoomLevel: 0,
50+
defaultZoomLevel: 1,
5151
gestureSettingsMouse: { scrollToZoom: false },
5252
tileSources: [iiifUrl],
5353
drawer: "canvas",

assets/styles/components/image-viewer.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
height: auto;
1515
}
1616

17+
#osd-viewer.fullpage {
18+
height: 100%;
19+
max-height: none;
20+
}
21+
1722
.osd-btn-group {
1823
position: absolute;
1924
top: 10px;

0 commit comments

Comments
 (0)