Menu

#2803 autolayout working as .vap is loaded

nextrelease
open
nobody
None
5
2 days ago
2 days ago
No

Darrelle had a bug for me where when working with a .vap where the plot legend is outside of a plot, Autoplot would move out the edge of the plot clipping the labels. When running as a background job, it would clip like this, but when running interactively, it would properly leave the edge alone. The vap said the right edge should be at 100%-10em, and the image would have it at 100%-6em.

Oddly for me when I loaded the file interactively, it would come up with the right edge at 100%-6em. But this made debugging easier.

It looks like the problem is the AutoLayout feature is active as the .vap was loading, and as I debugged it I could see the DasCanvas wasn't painting as autolayout was called. It seems reasonable to wait until the DasCanvas is idle to do the autolayout actions, and this seems to fix the problem.

I'll commit these changes and see if the tests are okay.

Discussion

MongoDB Logo MongoDB