On destroy reset viewport
Better support for translate attribute