oxyplot icon indicating copy to clipboard operation
oxyplot copied to clipboard

Orientation changed not correctly handled

Open galadril opened this issue 8 years ago • 4 comments

On OXYPlot for Xamarin, if you change the orientation of the ios (iphone) device after loading the graph, it doesn't automaticly resizes to the new dimensions

Steps to reproduce

  1. load a graph on orientation portrait
  2. change the orientation
  3. see example screenshots

Platform: Xamarin iOS .NET version: .NET Standard

Expected behaviour

It should automaticly resize to the new dimensions

Actual behaviour

It shows really weird.. see screenshots

good bad

galadril avatar Sep 05 '17 08:09 galadril

This issue should be moved to https://github.com/oxyplot/oxyplot-xamarin

objorke avatar Oct 10 '17 05:10 objorke

Is this issue fixed? Iam facing same issue and couldn't get the corresponding issue in the link you provided @objorke

jasjmj avatar Apr 05 '18 09:04 jasjmj

Hi Gentlemen, I am also struggling with this issue - were you able to come up with a solution?

onelloyd avatar Apr 26 '18 17:04 onelloyd

For IOS, I was able to solve this issue by placing the following within OnSizeAllocated:

OxyPlotModel.Model.PlotView.InvalidatePlot();

OxyPlotModel is the name I assigned to the plot area within my XAML.

tsass123 avatar Dec 11 '22 16:12 tsass123