Fix panes button resize issue