fix for top/bottom panel border