[IC] added more logic to determine iframe width.