Description
I know there is autosize
. But autosize is not good enough because it runs on every changeDetection. The docs warn about the use of autosize
.
Note that you should use this option at your own risk, because it could cause performance issues.
Here in this Stackblitz I use PRIVATE! _updateContentMargins()
https://github.com/angular/material2/blob/833d428fa423d40f276cd93ebb1cf83c73b64a88/src/lib/sidenav/drawer.ts#L719 which I found while looking at the source.
However this function is private and as far as I know it should be prevented to use private API's.
What is the use-case or motivation for this proposal?
In my usecases I know what will trigger a change in the width of the drawer. (In the example its a button click/ ... might be a loader finishing or what ever ...)
So I want to trigger resize for those few occasions.
How can I use something public to trigger the resize as needed? Can we make something like _updateContentMargins()
public?