Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1868 - HorizLine shows over axis after scroll in iOS
Summary: HorizLine shows over axis after scroll in iOS
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: iOS (show other bugs)
Version: TeeChart for .Net 4.1.2016.05125
Hardware: Phone iOS
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-20 00:08 EDT by Bill
Modified: 2018-01-16 07:42 EST (History)
3 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
HorizLine shows over axis (5.63 KB, image/png)
2017-05-20 00:08 EDT, Bill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bill 2017-05-20 00:08:18 EDT
Created attachment 763 [details]
HorizLine shows over axis

xamarin.forms app with teechart in iOS,
after scroll the HorizLine, it shows over axis.

I found related code in TeeChart.PCL.iOS.Unified\IOSCanvas.cs:
public override void ClipRectangle (Xamarin.Forms.Rectangle r)
{
    this.g.SaveState();
    this.g.ClipToRect(new System.Drawing.RectangleF((float)r.X,(float)r.Y,(float)r.Width,(float)r.Height));
    this.g.RestoreState();          
}

it restored clipped rect??? why???

I have checked the android version, it didn't save and restore state,
and it doesn't have such problem.
I guess that is the reason.

after I removed those two line of code, 
it works as expected.

Any one can confirm that? and fix it?
Comment 1 Bill 2017-05-20 00:15:21 EDT
tested version: 4.0.2016.11220
Comment 2 Bill 2017-05-20 00:19:13 EDT
similar problem:

public override void ClipEllipse (Xamarin.Forms.Rectangle r)
{
    this.g.SaveState();
    this.g.ClipToRect(new RectangleF((float)r.X, (float)r.Y, (float)r.Width, (float)r.Height));
    this.g.RestoreState();
}
Comment 3 Bill 2017-05-21 23:41:26 EDT
it seems fixed in version 4.0.2017.27030
which code is:
public override void ClipRectangle(Rectangle r)
{
    this.g.SaveState();
    this.g.ClipToRect(new RectangleF((float) r.X, (float) r.Y, (float) r.Width, (float) r.Height));
}

no restore!
Comment 4 sandra pazos 2018-01-16 07:42:47 EST
Hello Bill,

Thanks for the information. I have checked it again and seems fixed for build 4.1.2018.01040 

Thanks in advance