View Single Post
09-18-2012, 02:48 PM
#1
BoyWonder is offline BoyWonder
Status: Member
Join date: Mar 2012
Location: Brooklyn, United States
Expertise: Programming
Software: Notepad++
 
Posts: 102
iTrader: 0 / 0%
 

BoyWonder is on a distinguished road

  Old  Window.innerwidth problem

When i resize the window, the window.innerwidth doesn't update. I dont want to use jQuery.

var page = window.innerWidth;
var content = document.getElementById("content");
content.style.width=page-300 + "px";

i tried:
window.addEvent("resize", function() {
console.log(window.getCoordinates().width);
});
with no avail​