Cleanup right margin drawing

After the refactoring to use draw_layer, the translated values are not
used anymore, so do not bother calculating them
test-widget: allow to set right margin position