Closed
Description
Sidenav container is calculating its styles each change detection to make sure that the content has the margin left styles matching the sidenav's width.
/**
* This is using [ngStyle] rather than separate [style...] properties because [style.transform]
* doesn't seem to work right now.
*/
_getStyles() {
return {
marginLeft: `${this._getMarginLeft()}px`,
marginRight: `${this._getMarginRight()}px`,
transform: `translate3d(${this._getPositionOffset()}px, 0, 0)`
};
}
Metadata
Metadata
Assignees
Labels
No labels