change layout manager instantiate place to solve app_window dependency
Merge pull request #17111 from gasolin/bubble-982033

Bug 982033 - change layout manager instantiate place to solve app_window dependency, r=alive