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
Illustrator's "align to pixel grid" feature screws up Blok's auto layout. It can cause auto layout to keep running layout infinitely, effectively hanging Illustrator. Workaround is to turn that Illustrator feature off for now.
Problem 1
Align to pixel grid nudges things around a bit after a layout (especially with Area Text). That triggers a selection changed event and Bloks sees new dimensions. Resizing often isn't allowed, so Bloks undoes the change. Align to pixel grid then nudges things around a bit, and the infinite loop continues.
We can't detect when align to pixel grid is on since PageItem.pixelAligned never seems to work
On the native side, maybe AIArtSuite::IsPixelPerfect or AIDocumentSuite::GetDocumentPixelPerfectStatus() will give us the true value
Can't solve it by detecting an infinite loop, we'd reject real user changes
Problem 2
With flexibility turned on, sometimes the correct layout leaves art with fractional widths/heights. Align to pixel grid fixes this, but then we hit the same infinite loop.
Probably shouldn't try to solve this by attempting to round the same way align to pixel grid does. How would we know what algorithm to match? Too many edge cases
The text was updated successfully, but these errors were encountered:
Illustrator's "align to pixel grid" feature screws up Blok's auto layout. It can cause auto layout to keep running layout infinitely, effectively hanging Illustrator. Workaround is to turn that Illustrator feature off for now.
Problem 1
Align to pixel grid nudges things around a bit after a layout (especially with Area Text). That triggers a selection changed event and Bloks sees new dimensions. Resizing often isn't allowed, so Bloks undoes the change. Align to pixel grid then nudges things around a bit, and the infinite loop continues.
PageItem.pixelAligned
never seems to workAIArtSuite::IsPixelPerfect
orAIDocumentSuite::GetDocumentPixelPerfectStatus()
will give us the true valueProblem 2
With flexibility turned on, sometimes the correct layout leaves art with fractional widths/heights. Align to pixel grid fixes this, but then we hit the same infinite loop.
The text was updated successfully, but these errors were encountered: