From: Tuukka Lehtonen Date: Thu, 26 Sep 2019 20:24:12 +0000 (+0300) Subject: Two rendering glitch fixes for time series charts X-Git-Tag: v1.43.0~136^2~62 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=78d831a19c254d829e45d04c5ec6a3057680b7d7;hp=78d831a19c254d829e45d04c5ec6a3057680b7d7;p=simantics%2Fplatform.git Two rendering glitch fixes for time series charts 1. Grid values were not rendered properly when the [yMin,yMax] interval gets too small (under 1e-6). The calculations in GridSpacing.makeGridSpacing contain a capping logic for parameter viewboxSize which doesn't necessarily have to be there (IMHO). The problem is essentially that auto-scaling the Y-axis allows zooming to any small value interval, but the vertical ruler rendering just doesn't work properly in those cases. 2. GridUtil.calcLabelWidth calculated the rendered Y-value labels differently from the rendering logic in GridUtil.paintVerticalRuler and GridUtil.paintVerticalSlaveRuler, i.e. in a more inprecise manner which results in the y-axis reserved width not following properly what is rendered. gitlab #392 Change-Id: I30998d9336e50606956a78ad547ee437e0439f1a ---