The Grid Format plugin download page has 2 screenshots with the lightbox aligned to center and another aligned to top.
The default seems to be center alignment but how can I align it to the top of the screen such as the second picture?
The Grid Format plugin download page has 2 screenshots with the lightbox aligned to center and another aligned to top.
The default seems to be center alignment but how can I align it to the top of the screen such as the second picture?
Without looking I don't know the workings of Fordson much at the moment, so have a play with finding a suitable element for the 'pageelement' in the code in module.js:
var top = 50;
var pageelement = M.format_grid.ourYUI.one('#page-content'); // All themes.
if (!pageelement) {
pageelement = M.format_grid.ourYUI.one('#region-main'); // Fallback.
}
if (pageelement) {
var pageelementDOM = pageelement.getDOMNode();
top = pageelementDOM.offsetTop + pageelementDOM.clientTop;
if (top === 0) {
// Use the parent. This can happen with the Boost theme where region-main is floated.
top = pageelementDOM.offsetParent.offsetTop + pageelementDOM.offsetParent.clientTop;
}
top = top + 15;
}
or adjust it to suit.