panel: Support all screen edges for the shadow