mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-11 07:16:08 +00:00
16 lines
306 B
JavaScript
16 lines
306 B
JavaScript
|
/**
|
||
|
* Grid helper for absolutely positioning popups on page.
|
||
|
*/
|
||
|
const grid = {
|
||
|
landscape: {
|
||
|
row: ( x ) => 50 + ( ( x - 1 ) * 300 ),
|
||
|
col: ( x ) => 50 + ( ( x - 1 ) * 500 )
|
||
|
},
|
||
|
portrait: {
|
||
|
row: ( x ) => 50 + ( ( x - 1 ) * 450 ),
|
||
|
col: ( x ) => 50 + ( ( x - 1 ) * 400 )
|
||
|
},
|
||
|
}
|
||
|
|
||
|
export default grid;
|