-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Word wrapped Label not measured correctly #8797
Comments
Any movement on this? It is blocking our release, |
@samhouts @kingces95 any movement on this? Pretty serious bug IMO. |
@samouts any movement on this? |
I can reproduce this on Android as well. I tested 3.6, 4.4, and 4.5-pre1. In my test I didn't find that the
|
The stacklayout was simply to show how the text wrapped under the 2nd box. :) |
@davidortinau Any idea on when this will get picked up for dev? We have had to release our product but with a very ugly on-screen workaround the users can see. |
Hi all, So feel free to ignore this issue going forward, you have done an outstanding job of ignoring it so far. |
Running into this same issue. I'll just scream into the void. |
Okay, I've been digging into this a bit today. Part of the problem is a bug in how the Grid is handling ColumnSpacing when working out the size of starred columns. So as a workaround, you may be able to mitigate this problem by setting the ColumnSpacing on the Grid to zero. I realize that's not a ton of help if you need, like, space between you columns. But it might help some folks. I'll keep digging and see if I can find a fix. |
Could anybody clarify if the has been released as we faced a pretty similar issue with XF 4.8.0.1534 and 4.8.0.1451? |
I am not sure if it is the same problem, but there is definitely some measurement bug for label with word wrap in XF 4.8 SR 3. I have a grid in the ItemTemplate for a ListView. It has |
This fix has been released. But we have found some other issues involving star rows and columns in Grids. The fix for those is #12475 - you might check the "Issues Resolved" section to see if any of those issues match the problems you are seeing. The fix in 12475 is still under review, but we hope to have it merged and released in the next service release for 4.8. |
@hartez thank you for the fix, I have updated to XF 4.8.0.1687 and at first glance its looking good! |
@JohnHDev - You may need to log a new issue. Once an issue is Closed, further comments don't always get noticed. I'm surprised by this, particularly when tags are used (I thought a tag would have resulted in a notification regardless of current state), but it's my experience. |
@JohnHDev @johnshardman We do get notifications when we're tagged, even on closed issues. But we can't always get to them all immediately - most days I get dozens, if not more. New issues go into the triage queue, which means that at least that week's bug manager will see them and take a look. |
@hartez thank you for letting us know! Can you reopen this? New XF project, delete MainPage xml and xml.cs, create a new MainPage.cs with the following content:
Run it on iPhone simulators to replicate (iPod touch, iPhone SE 14.2 etc), the label text wraps outside of the frame where as the frame should resize accordingly. |
@hartez I saw David's tweet and was going to try it today. Just updated my repro project (to 4.8.0.1821), unfortunately the label still wraps out of the frame. |
Yes, sorry.. It didnt fix my issue (#13110) as well... Tried upgrading to Xamarin.Forms 5.0.0.1829-pre6 after seeing its release notes. |
@hartez , any update on this please? |
@hartez will you reopen this pls? Or should we create a new issue and wait another year for a fix? |
Am getting this with a wordwrapped label in a grid in a grid in a list view. FillAndExpand everywhere. XF v5.0.0.1931. Word wrapping expands the parent grid but not that grid's parent. @hartez Setting ColumnSpacing in the top grid to zero helps a bit. |
Ive created a new bug with my new example above. Let's see if it takes another 8 months to fix. Clock starts... now! |
Hi this is happening to me as well. In my case I am not using a grid, I am using a wrapping flex layout. This is an extremely big bug. We cannot release our app like this. |
We are dropping Xamarin and Xamarin.Forms, its just too buggy and it takes too long before bugs get fixed. 8 months for this bug and the fix just doesn't work. Utter nonsense. @microsoft, just give up and throw in the towel. |
Not giving up but Microsoft does need to overhaul the Xamarin team. They simply don't have the discipline necessary to develop something of this complexity. |
@jefffhaynes Ive been in the Xamarin ecosystem since MonoTouch, but as painful as it would be to move to a different technology stack, it feels like it might be better in the long run to take that hit now as it just isn't getting any better. Lack of communication from the Xamarin team doesn't help either, it appears they are all off working on the new and shiny Maui, and not dealing with the issues that their customers are having right here, and right now. |
Also ran into this same issue and, unfortunaly screaming into the void. |
I've found the issue is still present in XF5.0.0.2244 and I think it's painfully obvious that it'll never get fixed. My label was using word wrap in an auto sized row of a grid, but the wrapped content was being cut off and not shown - only in Android. @hartez does mention a workaround above which seemed to fix the issue for me, probably why this hasn't been reopened. I set Padding, ColumnSpacing, and RowSpacing to zero and the wrapped content magically became visible again. I then added Margin values to all the labels in the grid to get the correct spacing again, but this re-introduced the issue... @!$&£ so I guess it's the void for me too. |
Any update on this issue? |
Thanks, the solution with the "0" spacings helped me to fix the issue (also only android). I've fixed the missing margins with "empty" rows and columns in the grid with a fixed size. |
Description
A Label in a grid that is contained in a StackLayout isn't measured correctly, with contents below the grid in the StackLayout overlapping the grid and label.
Steps to Reproduce
Expected Behavior
Label should display correctly, with all the text visible.
Actual Behavior
Label is being partially obscured by the 2nd BoxView, the words 3rd and Last are replaced with the BoxView.
Basic Information
Version with issue:
Last known good version:
IDE: VS4Mac
Platform Target Frameworks:
Nuget Packages: XF 4.2.0
Affected Devices:
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: