zumero / DataGrid

A Xamarin.Forms control for displaying data in rows and columns.
Apache License 2.0
20 stars 19 forks source link

No Scrolling on IPhone 6 Devieces #5

Open larrytodd opened 8 years ago

larrytodd commented 8 years ago

The scrolling works on IPad, IPod touch and the IPhone 6 simulator, in Xamarin. However, on an IPhone 6 device, the grid does not scroll both, left and right and up and down.

larrytodd commented 8 years ago

I am attaching a file with a snippet of the XAML I used to create the DataGrid. There is another StackLayout, that contains Labels and Pickers above this one. DataGrid.txt .

ericsink commented 8 years ago

This symptom typically ends up being a build configuration problem of some kind. Like the renderer is getting removed by the linker.

Is there any chance that Zumero.DataGridComponent.Init () is not being called in the trouble case?

E

larrytodd commented 8 years ago

The Zumero.DataGridComponent.Init() component is getting called. There is not anything that I'm doing different for the IPhone vs. the IPad and IPod touch.I pretty much do it the same as in the samples, in AppDelegate -> FinishedLaunching. Then load the DataRows object, which is an array in the OnAppearing method asynchronously. The only thing I can think of, is that the screen size is different.

ericsink commented 8 years ago

Hmmm. I am reasonably certain that we've got DataGrid apps that work fine on an iPhone 6. But I suppose we should verify that just to be 100% certain.

If it's working for you in the iPhone 6 Simulator, then screen size is apparently not the issue.

If you temporarily remove the other StackLayout, do you get the same result?

I wonder what would happen if you built against the DataGrid source code (instead of its nuget package, for example) and ran it under the debugger and put a breakpoint in the scrolling code.

garlinghdw commented 8 years ago

I am having the same issue, has this been resolved if so then how?

hdeselys commented 8 years ago

Same issue when I chose the Linker Behavior option as "ARMv7 + ARM64" in my Xamarin Studio. It appears that the grid scroll correctly on an iPhone 5 (ARMv7) but not in iPhone 6/6s (ARM64). I conclude that the architecture options is not enabled correctly by the datagrid. If I check the option "Enable device-specific builds", it works well on iPhone 6 but this option can't be used in Release configuration. Does Anyone have a solution for this? I need the ARMv7+ARM64 linker option enabled in order to support the wider range of device possible. Thanks in advance.

ericsink commented 8 years ago

Are you using the nuget package?

It's possible we've got a build problem where not all architectures are getting included. One workaround would be to build from source.

hdeselys commented 8 years ago

Actually, I'm using the nuget package. I will try with source code and I will come back with my results.

Thanks for your reply.

hdeselys commented 8 years ago

I tried to add Zumero.DataGrid.dll, Zumero.DataGrid.Unified.dll in references of my iOS project and it does not change anything: impossible to scroll the grid on iPhone 6. Is it the right way to do? Can you, please, explain to me how to include your source code in my application? Thanks in advance.

ericsink commented 8 years ago

Explaining how to incorporate the source into your build would be fairly complicated.

We'll try to take a look at this problem as soon as we can.

ljrpicasso commented 8 years ago

We are having the same issue with iPads.. It seems that the scrolling is okay until we try the iOS 9.3 machines. The older iPads are scrolling, the simulator scrolls, but the new iPads don't. Don't know if that helps with your investigation... but any help is greatly appreciated!

ALavallee commented 8 years ago

I can also reproduce the bug on iOS 9.3. I build the library myself from the source. Do we need to include Zumero as a project to go around the bug?

Thank you!