Fix rendering widgets adjacent to hidden widgets