Frontmatter
| id | 718 |
| title | Neo.Main.getWindowData() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jun 14, 2020, 2:38 PM |
| updatedAt | Jun 14, 2020, 3:32 PM |
| githubUrl | https://github.com/neomjs/neo/issues/718 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 14, 2020, 3:32 PM |
Neo.Main.getWindowData()
tobiu assigned to @tobiu on Jun 14, 2020, 2:38 PM
tobiu changed title from Neo.Main.getWindowPosition() to Neo.Main.getWindowScreen() on Jun 14, 2020, 2:53 PM

tobiu
Jun 14, 2020, 2:53 PM
window.screen is not spreadable.
tobiu closed this issue on Jun 14, 2020, 2:54 PM
tobiu reopened this issue on Jun 14, 2020, 3:32 PM
tobiu changed title from Neo.Main.getWindowScreen() to Neo.Main.getWindowData() on Jun 14, 2020, 3:32 PM

tobiu
Jun 14, 2020, 3:32 PM
adjusted to:
getWindowData() {
const win = window,
screen = win.screen;
return {
innerHeight: win.innerHeight,
innerWidth : win.innerWidth,
outerHeight: win.outerHeight,
outerWidth : win.outerWidth,
screen: {
availHeight: screen.availHeight,
availLeft : screen.availLeft,
availTop : screen.availTop,
availWidth : screen.availWidth,
colorDepth : screen.colorDepth,
height : screen.height,
orientation: {angle: screen.orientation.angle, type: screen.orientation.type},
pixelDepth : screen.pixelDepth,
width : screen.width
},
screenLeft: win.screenLeft,
screenTop : win.screenTop,
};
}
tobiu closed this issue on Jun 14, 2020, 3:32 PM
for displaying popup windows, we need access to window.screenLeft & top.
remoteAccess