Fixes bug where children of ATTACHED_SHOWING views are ATTACHED_HIDDEN_BY_PARENT. Fixes #1190.