Hello, I had this same problem. My panel/window background is also pivoted on the top left. However, for a variety of reasons, I can't change that without a lot of pain. So, I had to look for an alternative solution.
Basically the panel was doing strange things with non-even number sizes. It was either bouncing like in his video, or even if it didn't LOOK like it was bouncing, the offset and position were just increasing constantly every single frame. This depended on the size of my realizable window. Some sizes it would bounce, some it wouldn't. Then, it also depended on my current scroll value, so some sizes it didn't bounce until I scrolled to a certain value...
I was able to fix it with the following workaround:
In UIPanel.OnAnchor()
changed:
float newX = Mathf.Lerp(lt, rt, 0.5f);
float newY = Mathf.Lerp(bt, tt, 0.5f);
to:
float newX = Mathf.Round(Mathf.Lerp(lt, rt, 0.5f));
float newY = Mathf.Round(Mathf.Lerp(bt, tt, 0.5f));
Basically, I just rounded the numbers to ensure they were integers, and not some floating point decimal that lead to bouncing or increasing each frame.
Not saying this is a good solution, but it solves my problem.