Set your panel's parent and anchor to DominosClassBar. Set anchor to and from to CENTER.
Under height, put the height you want for your panel (height doesn't change with the class bar, only width). If the class bar was 100 x 40, for example, and you want an offset of 5 on each side for your panel... Your height would be 50 (40+5+5).
Since the width is what changes on your bar, this is what you need to be more creative about. A lot of people don't realize that kgPanels takes percentages for dimensions. I *think* that it even still does math on those percentages. So... Under width put "100% + 10" (without the quotes). If kgPanels happens to not want to do the math, then try something like 110%.
In short, scripts aren't always the answer.