You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the v1.x of this library it was possible to set different dimensions at render time, by passing it as a prop to render: renderUrl("https://widgets...", { dimensions: { width: '100%', height: '500px' } }, myElement);
In v2.x this breaks because of the upgrade to zoid 9 which expects dimensions to be set at define time and cannot override them. The reactComponent function throws an error when trying to pass in dimensions, and the render and renderUrl functions simply ignore dimensions in the props.
The current workaround is to set dimensions at define time in overrides to 100% height ({ dimensions: { width: '100%', height: '100%' } }; this can be passed as the 4th parameter to renderUrl) and wrap the widget in a container with fixed height where different heights are needed.
In the v1.x of this library it was possible to set different dimensions at render time, by passing it as a prop to render:
renderUrl("https://widgets...", { dimensions: { width: '100%', height: '500px' } }, myElement);
In v2.x this breaks because of the upgrade to zoid 9 which expects dimensions to be set at define time and cannot override them. The reactComponent function throws an error when trying to pass in dimensions, and the render and renderUrl functions simply ignore dimensions in the props.
This issue has been reported to zoid: krakenjs/zoid#271
The text was updated successfully, but these errors were encountered: