Revert "Fixing isShown: zero-size element should be invisible if it contains a"

This reverts commit f61d05cb58e3d519a7eb38967d70c2b18db5506c.