MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _changeWidth

Method _changeWidth

src/mapml-viewer.js:1032–1040  ·  view source on GitHub ↗
(width)

Source from the content-addressed store, hash-verified

1030 }
1031
1032 _changeWidth(width) {
1033 if (this._container) {
1034 this._container.style.width = width + 'px';
1035 this.shadowRoot.styleSheets[0].cssRules[0].style.width = width + 'px';
1036 }
1037 if (this._map) {
1038 this._map.invalidateSize(false);
1039 }
1040 }
1041 _changeHeight(height) {
1042 if (this._container) {
1043 this._container.style.height = height + 'px';

Callers 2

connectedCallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected