Skip to content
Snippets Groups Projects
Unverified Commit 85fc17b7 authored by Chris Beer's avatar Chris Beer Committed by GitHub
Browse files

Increase the default elastic window size to 480x400 (#3460)

parent 935d4eb8
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ describe('window actions', () => { ...@@ -45,7 +45,7 @@ describe('window actions', () => {
], ],
elasticLayout: { elasticLayout: {
height: 400, height: 400,
width: 400, width: 480,
x: 260, x: 260,
y: 300, y: 300,
}, },
......
...@@ -285,6 +285,10 @@ export default { ...@@ -285,6 +285,10 @@ export default {
{ key: 'scroll', behaviors: ['continuous'] }, { key: 'scroll', behaviors: ['continuous'] },
{ key: 'gallery' }, { key: 'gallery' },
], ],
elastic: {
height: 400,
width: 480
}
}, },
windows: [ // Array of windows to be open when mirador initializes (each object should at least provide a manifestId key with the value of the IIIF presentation manifest to load) windows: [ // Array of windows to be open when mirador initializes (each object should at least provide a manifestId key with the value of the IIIF presentation manifest to load)
/** /**
......
...@@ -83,8 +83,7 @@ export function addWindow({ companionWindows, manifest, ...options }) { ...@@ -83,8 +83,7 @@ export function addWindow({ companionWindows, manifest, ...options }) {
}; };
const elasticLayout = { const elasticLayout = {
height: 400, ...(config.window.elastic || { height: 400, width: 480 }),
width: 400,
x: 200 + (Math.floor(numWindows / 10) * 50 + (numWindows * 30) % 300), x: 200 + (Math.floor(numWindows / 10) * 50 + (numWindows * 30) % 300),
y: 200 + ((numWindows * 50) % 300), y: 200 + ((numWindows * 50) % 300),
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment