view clipping programmatically, no clipping when menu shown, so that shadow is visible