Don't access the clientHeight, instead use height method.