added variable border check for when painting scatter menu
merge