Add resourceSources attribute.
React to resize event on scope by re-rendering.
Set height to the parent element's height.
Some of this is not generalized.