kinetic js full width
by Nick Hulea
HTML
<div id="container"></div>
CSS
.kineticjs-content {
background-color: yellow;
}
JavaScript
var stage = new Kinetic.Stage({
container: 'container',
width: (window.innerWidth / 100) * 100 // 80% width of the window.
});
window.onresize = function(event) {
stage.setWidth((window.innerWidth / 100) * 100);
}