Menu

#2803 autolayout working as .vap is loaded

nextrelease
open
nobody
None
5
2026-03-07
2026-02-26
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

  • Jeremy Faden

    Jeremy Faden - 2026-03-03

    Tests were okay, but Darrelle says that she still sees the bug. I need to figure out what's going on.

     
  • Jeremy Faden

    Jeremy Faden - 2026-03-04

    I added code to disable autolayout.

     
  • Jeremy Faden

    Jeremy Faden - 2026-03-07

    The warning message "Annotation refers to plot plot_1 which is not found" is no longer printed when the anchorType is CANVAS.

     
MongoDB Logo MongoDB