* @override
()
| 191 | * @override |
| 192 | */ |
| 193 | onLayoutMeasure() { |
| 194 | if (this.layoutCompleted_ || this.reportedZeroSize_) { |
| 195 | return; |
| 196 | } |
| 197 | |
| 198 | const {height, width} = this.getLayoutSize(); |
| 199 | if (width * height === 0 && !this.nodom_) { |
| 200 | this.reportedZeroSize_ = true; |
| 201 | user().warn( |
| 202 | TAG, |
| 203 | 'Skipped initializing amp-script due to zero width or height.', |
| 204 | this.element |
| 205 | ); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * @param {!AmpScriptService} service |
no test coverage detected