Enhance dialog viewport limit.