NavDrawer doesn't get pinned when resizing from a small to large screen
Description
Resizing my screen from large to small causes the dialog to go into unpinned state. However resizing back to large doesn't bring it back to pinned state.
Steps to reproduce
- Run the repo demos
- Resize the window to < 1024px
- Resize back to normal
Result
I cannot open the drawer anymore.
Expected result
The drawer should have appeared back.
Attachments

Yeah, the hamburger button in the demos went missing at some point. There should be a step before 3. "Click the overlay or select a sample" to hide the drawer as I can't reproduce it otherwise. If you can repro without that do let me know, otherwise I'm labeling this for the demos and I'll add back the button. (see below).
Notes: Opening and closing the drawer is entirely up to the app. It's not even open by default - the initial open is explicit in the demos setup, and the auto-close on selecting a sample is app-specific as well. The only state the drawer should be auto-updating is the
pinand if already closed it remains that way.
As far as how auto-pin works, I certainly don't mind adding more automatic open if needed. @SlavUI @sbozalieva Thoughts?
P.S. Alternatively this can easily be achieved in the demos app by just binding the open state to the pin:
<igx-nav-drawer [isOpen]="drawerState.pin" [(pin)]="drawerState.pin">
Though that'll also close it when it unpins, which I'm not sure is always desired.
@damyanpetev Let's not automate it for now.
Closing for now. If auto-pin + open combination comes up again in the future this can be reopened.