[gui] fix incorrect parsing of relative <width> and <height> tags