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

Summary: HorizLine shows over axis after scroll in iOS
Product: .NET TeeChart Reporter: Bill <bill2004158>
Component: iOSAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: bill2004158, pep, sandra
Priority: ---    
Version: TeeChart for .Net 4.1.2016.05125   
Target Milestone: ---   
Hardware: Phone   
OS: iOS   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: HorizLine shows over axis

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