Skip to content

Revert "Revert "enable unusedBlocks everywhere""#9743

Merged
Hamms merged 2 commits into
stagingfrom
revert-9725-revert-9662-release-unused-blocks
Jul 29, 2016
Merged

Revert "Revert "enable unusedBlocks everywhere""#9743
Hamms merged 2 commits into
stagingfrom
revert-9725-revert-9662-release-unused-blocks

Conversation

@Hamms

@Hamms Hamms commented Jul 29, 2016

Copy link
Copy Markdown
Contributor

Reverts #9725

The original PR was reverted because bumping of unused blocks back onto the workspace when they were dragged outside the workspace was broken in IE.

We have a clippath within the unused block frame whose width was set to 100%. Turns out that in IE and only IE, getBBox on that clippath was returning slightly more than the full width of the workspace, meaning that the block itself also had an overwide bounding box, meaning that we specifically skipped bumping it.

The simple fix is to manually assign the width of that element at render time like we do all the other visible elements in that frame.

TODO (in a separate PR): this same problem affects the existing function frames, which were the inspiration for unused block frames. Fix this there, too.

Hamms added 2 commits July 28, 2016 17:54
Because otherwise IE's getBBox grants it an absurdly large width that
breaks block bumping
@islemaster

Copy link
Copy Markdown
Contributor

LGTM. Nice detective work there... sounds like a headache.

@Hamms

Hamms commented Jul 29, 2016

Copy link
Copy Markdown
Contributor Author

Hah, it was definitely a bit of a rabbit hole.

@Hamms Hamms merged commit 86dabd0 into staging Jul 29, 2016
@Hamms Hamms deleted the revert-9725-revert-9662-release-unused-blocks branch July 29, 2016 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants