ArduPilot / MissionPlanner

Mission Planner Ground Control Station for ArduPilot (c# .net)
http://ardupilot.org/planner/
GNU General Public License v3.0
1.8k stars 2.42k forks source link

Zooming in log file plots does not work correctly on Windows 8.1 #261

Open rrr6399 opened 10 years ago

rrr6399 commented 10 years ago

I just recently bought a new laptop with Windows 8.1. I'm using the latest Mission Planner distribution. When I attempt to draw out a rectangle to zoom part of the plot, the rectangle is offset from the cursor like my mockup shows in this screenshot:

missionplannerbugs

It appears that there is an offset error in the rectangular selection logic.

rrr6399 commented 10 years ago

I just updated MissionPlanner to version 1.295 and build 1.1.5150.11972 and the problem with zooming on Windows 8.1 is still present.

meee1 commented 10 years ago

does it work if you use a mouse, vs touch?

rrr6399 commented 10 years ago

It doesn't work with the mouse, or the touchpad or touching the screen. Here is an actual picture of what I see: cursor-zoom-box-offset

I couldn't show it on a screenshot since the cursor and the zoombox don't appear on the screenshot.

rrr6399 commented 10 years ago

I downloaded ZedGraph from https://github.com/discomurray/ZedGraph and compiled and ran one of the demos. It had the same zoombox problem on my box. So it looks like it is a bug in ZedGraph, which doesn't look like its being maintained much. (The SourceForge version is definitely not being maintained.)

meee1 commented 10 years ago

yes, its an odd one, as it works on xp, win 7, just fine. so might take a while to get to the bottom of it.

meee1 commented 10 years ago

I think it might even work on win8, just not 8.1

rrr6399 commented 10 years ago

Looks like there is a bug related to changing the default screen text size: https://github.com/discomurray/ZedGraph/issues/3#issuecomment-35740945

rrr6399 commented 10 years ago

The problem is fixed in the ZedGraph git repository now. I pulled it and compiled it. It works great now. https://github.com/discomurray/ZedGraph/issues/3#issuecomment-36048252

meee1 commented 10 years ago

should be fixed in next mp release