fix padding and zooming in2D viewers