Fixed docHeight and width set to null, then not resize.