Comments (3)
@bukkideme thanks for bringing this to my attention!
This bug is now fixed in ScottPlot 3.0.4 (available on NuGet)
Recreating this bug (without ScottPlot)
The fundamental problem seems to be that calling Application.DoEvents()
on SplitterMoved
(or a child's SizeChanged
event) causes the split to freeze. Interestingly resizing the form unfreezes the splitter.
- create a new Winform project
- drop a SplitContainer on the form
- add
Application.DoEvents()
to the SplitContainer'sSplitterMoved
event - resize a bunch of times and eventually the split will freeze
- once frozen, resizing the form unfreezes it
The Fix
The ScottPlot user control's SizeChanged
event calls Render()
which was calling Application.DoEvents()
. I removed that call (5e485a9) and the program seems to be working well without it and the SplitContainer bug is gone.
from scottplot.
... just realized the Application.DoEvents()
is required for smooth left-click-drag scrolling. I'll be putting that line back in, but only calling it if the user is actively panning/zooming. This will prevent it from being called when resizing a SplitContainer
from scottplot.
Fixed: 4bc377c
I'll push an update to NuGet in the next hour or so.
from scottplot.
Related Issues (20)
- Log scale demo is broken HOT 2
- Plot figure has a thin black border in SVG HOT 14
- Signal: Add `YScale` property to signal source
- CICD: update changelog webpage HOT 1
- Demo: enable single file build HOT 1
- Vertical grid lines not correct drawn, when x axis is at the top HOT 5
- Website: update all FAQ pages
- Axis: show minor ticks when DateTime mode is enabled HOT 1
- Marker: closed marker shapes should disable outlines by default
- Generate: add method to return consecutive `DateTime` objects
- Demo: show how to use a custom font HOT 3
- FillStyle: disable border by default HOT 3
- Curve Fitting: add basic functionality HOT 2
- Testing: raster image comparison HOT 2
- Control: Opt-in flag to lock opposing axes together HOT 12
- Controls: add "open in new window" to default right-click menu
- Demo: draggable axis lines fail for inverted axes HOT 1
- DataStreamer ContinuouslyAutoscale HOT 10
- FillY plots from datastreamers? HOT 1
- Tick generator: font size is not being evaluated when determining tick spacing HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scottplot.