Fixed view rendering in element context

Signed-off-by: Tom Wright <tom@inflatablecookie.com>