Normally what you would do is get it where you want it, and the size how you want it, and then set it to 0 Opacity from options to make it completely invisible with no borders at all. The only time you would want to see borders is when you are changing the sizing of the dock it.
Does that work / make sense? Or is it possible that on the new OS's you always see a border even if Opacity is 0?