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
// Some iPad versions don't fire resize after portrait to landscape change.
if (userAgent.IPAD) {
browserEvents.conditionalBind(
window, 'orientationchange', document, function() {
// TODO (#397): Fix for multiple Blockly workspaces.
common.svgResize(common.getMainWorkspace() as WorkspaceSvg);
});
}
We should check whether this is still necessary for iPads. For other devices this code path isn't hit, and the resize handler in inject.ts is bound separately on each workspace.
The resize function uses getMainWorkspace which will only resize the most recently touched workspace.
See https://github.com/google/blockly/blob/master/core/inject.js#L325
The text was updated successfully, but these errors were encountered: