Getting the correct width of an XY-panel

A post was split to a new topic: Making an XYPanel wider