Skip to content

Commit 2ce7d55

Browse files
committed
build: bump MDC canary version
* bump MDC canary version from 85a1fa9ea to fc0eb5013 * implement new functions of MDCLinearProgressAdapter (cherry picked from commit c1918a9)
1 parent 989463f commit 2ce7d55

File tree

3 files changed

+583
-570
lines changed

3 files changed

+583
-570
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@types/youtube": "^0.0.38",
6262
"@webcomponents/custom-elements": "^1.1.0",
6363
"core-js": "^2.6.9",
64-
"material-components-web": "8.0.0-canary.85a1fa9ea.0",
64+
"material-components-web": "8.0.0-canary.fc0eb5013.0",
6565
"rxjs": "^6.5.3",
6666
"rxjs-tslint-rules": "^4.33.1",
6767
"systemjs": "0.19.43",

src/material-experimental/mdc-progress-bar/progress-bar.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,19 @@ export class MatProgressBar extends _MatProgressBarMixinBase implements AfterVie
8787
},
8888
setBufferBarStyle: (styleProperty: string, value: string) => {
8989
(this._bufferBar.style as any)[styleProperty] = value;
90+
},
91+
setStyle: (styleProperty: string, value: string) => {
92+
(this._rootElement.style as any)[styleProperty] = value;
93+
},
94+
getWidth: () => this._rootElement.offsetWidth,
95+
attachResizeObserver: (callback) => {
96+
if (window.ResizeObserver) {
97+
const ro = new ResizeObserver(callback);
98+
ro.observe(this._rootElement);
99+
return ro;
100+
}
101+
102+
return null;
90103
}
91104
};
92105

0 commit comments

Comments
 (0)