Fixes issue #312. Fixes left/right styles possibly  applying to child ui elements