devpanel: escape text and comment value in template viewer
basis.layout: fix getViewportRect() calculations