Skip to content

Backend.Resize(): useDelayedRendering argument#1099

Merged
swharden merged 3 commits intomasterfrom
1098-reset
May 30, 2021
Merged

Backend.Resize(): useDelayedRendering argument#1099
swharden merged 3 commits intomasterfrom
1098-reset

Conversation

@swharden
Copy link
Member

fixes #1098

Resizing and rendering once is important for establishing plot dimensions.

Rendering is required because it measures string sizes required to determine the size of the axis labels and ticks, and determines the size of the data area.

Delayed rendering after resizing is good for mouse interactions, but a non-delayed render is required during initialization such as after Reset().

#1098
@swharden swharden mentioned this pull request May 30, 2021
82 tasks
swharden added 2 commits May 30, 2021 13:29
the first render increments the render count twice (because one empty render is performed to measure axis and tick labels to determine the size of the data area)
@swharden swharden merged commit da90275 into master May 30, 2021
@swharden swharden deleted the 1098-reset branch May 30, 2021 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hard crash after FormsPlot.Reset()

1 participant