Comments (11)
Well, the fact is there is a problem with the rendering of ViewCells with Grids and labels using the HasUnevenRows="True" RowHeight="-1", it works fine on Andoid but is flimsy on iOS, but then again, apart from the price and the "Louis Vuitton" fashion style, everything is a bit flimsy on iOS!
Any actual solution for this ?
...They (Apple and iOS) don't even have a a concept of services (No GUI apps that run in the background) which come out of the box on Android and was available in Windows 95 some 20 years ago!!!
from xamarin.forms.
This is caused by an incorrect calculation of the cell height in the ListView renderer. @samhouts looks right up your alley :)
from xamarin.forms.
We also have similar issue using Xamarin.Forms.2.5.0.121934. This seems to be not only a ListView issue but an issue in general. I have also experienced issues with StackLayout and Label and both elements had issues to calculate height and width. Please fix the engine to calculate correctly as this is fundamental for the UI.
from xamarin.forms.
@syed-pelican: Do you have an additional sample we can use? There haven't really been many changes to the layout system in a long time. Most changes are coming in the way backends work.
from xamarin.forms.
Hey Jason. Was that question for me or syed?
from xamarin.forms.
Yes, similar unresolved issue here, the way it renders is not consistent across platforms and it is less than good enough...
We have had to resort to removing the ViewCells dynamically because if we don't it doesn't render the page/form properly and shows the ViewCell empty between thin lines and looks too ugly! this has some really nasty side effects so we are also stuck with this ?
So maybe you need to fix that instead so we don't have to use backdoors kind of solutions, this is because XF is quite flimsy in the way it renders pages and is not consistent across platforms so we do what we can to get the results we need... If the support was a bit better we wouldn't have to resort to such drastic solutions either...
---> If a ViewCell content is blank or empty, the renderer should not display it at all, and should not display the thin separator lines either ? This way would be the expected behaviour you would think ? Can you fix that please ? And also make sure it also works properly on iOS ?
from xamarin.forms.
@MichelMatthey I think you might be reporting a different issue. Would you mind opening a new issue with a reproduction illustrating the problem? Thanks.
from xamarin.forms.
@syed-pelican If you have a reproduction showing the issues without a ViewCell, can you please provide it to us? Thanks.
from xamarin.forms.
@samhouts Maybe the issue #1395 would help a bit. It reports the similar problem with measure and layout related to Label in Grid.
from xamarin.forms.
I still experience this behavior in a production app on the iPhone 5s; and the iPhone 5s and iPhone SE simulator. The Repo Solution from above works fine. Unfortunately, I cannot quite put my finger on what exactly is going wrong.
As you can see, for two elements the message is too long and wraps. Somehow the spacing is not adjusted as should be.
On the other hand the Message in the Category Messages is fully expanded and word wrapped.
I'm trying to reproduce the issue, but am still unable to do so after two hours of fiddling around. My production code uses Grouping and Template selectors. If I add this to the solution here, it still works.
The template for the Licenses (rendering broken) looks like this:
<DataTemplate x:Key="LicenseExpiryTemplate">
<ViewCell>
<StackLayout Style="{DynamicResource ListViewCellStyle}">
<Label Text="{Binding Text}"
LineBreakMode="WordWrap"
Style="{DynamicResource ListItemTextStyle}" />
</StackLayout>
</ViewCell>
</DataTemplate>
The template for the messages (working) like this:
<DataTemplate x:Key="NoContextActionTemplate">
<ViewCell>
<StackLayout Style="{DynamicResource ListViewCellStyle}">
<Label Text="{Binding Subject}"
LineBreakMode="WordWrap"
Style="{DynamicResource ListItemTextStyle}" />
<Label Text="{Binding MessageContent}"
LineBreakMode="WordWrap"
Style="{DynamicResource ListItemDetailTextStyle}" />
</StackLayout>
</ViewCell>
</DataTemplate>
Maybe someone has an idea as to why this still happens. @samhouts
I'm using Visual Studio 2019 RC3 and XF 3.6.0.264807 with a .NET standard project.
from xamarin.forms.
I'm seeing this bug again on iOS 13.5 using XF 4.7.0.968. I tried downgrade to 4.6.0.967 and bug persists
from xamarin.forms.
Related Issues (20)
- App freezes on Windows (UWP) when using Frame
- Cannot reload Listview datasource more than once, app close after error, Object reference not set to an instance of an object
- After installing the "Miicrosoft.UI.XAML" NuGet package on UWP platform. The Xamarin Button control style was changed. HOT 2
- [Bug] Xamarin.iOS application crashes on device with test flight version but not with DEBUG version HOT 4
- Unable to build Android custom renderers with latest Xamarin.Forms version HOT 1
- Xamarin Google.Map.MapView crash HOT 1
- [Bug] Missing a crucial warning in the NSMenu.Items documentation. HOT 1
- [Bug] App is frozen when resumed (Android) HOT 1
- UWP camera save option is disabled untill you edit capture picture. HOT 1
- [Bug] Archiving in VS 2022 failing HOT 3
- [Enhancement] Add more descriptive exception for route not found (Shell.Current.GoToAsync). HOT 2
- [Bug] Xamarin Splash screen not visible turns out black in iOS HOT 2
- [Bug] Entry looses focus
- [Bug] DisplayActionSheet doesn't show up on macOS
- [Bug] Letters below the writing line are cut off on iOS
- X2Property binding seems to be unfunctional in a carouselview
- [Bug] Xamarin.Forms v5.0.0.2662 has a package version conflict with itself HOT 5
- [Visual Studio 17.9.3] Xamarin project encountered an issue with xaml
- Get code in app from stack trace
- [Bug] In .Net 8 MAUI VisibleViews property of CarouselView is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.forms.