Window access on secure DOM (LockerService)
We've identified the issue within LockerService and it's in our queue to fix.
Please open a case with support and tell them to link to our internal work item W-3198557.
Just a thought on approaching this from a different angle: Remember that Locker will bar you from seeing DOM elements outside your Lightning namespace, but your components can still see one another.
There is a way to set dimensions relative to the height or width of the viewport in pure CSS using the vh
and vw
units. For example if your top-level component has this CSS:
.THIS {
height: 90vh;
}
Then it means the element will size up to 90% of the available viewport. I can't be confident right now of expected results but at least in theory you can query that top-level component's height (whether through the DOM or events) and use it to trigger changes in other components' sizes.