Commit d73c966
Core: better approximation for Label desired size
When getting desired size with constraints (0, infinity),
instead of trying to fit the text by splitting it into as many
lines as possible (which can lead to too much requested
height), try to approximate size of a square block of text.1 parent 6b67685 commit d73c966
File tree
1 file changed
+13
-2
lines changed- src/Core/src/[Microsoft.Maui.Graphics]/Gtk
1 file changed
+13
-2
lines changedLines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
47 | | - | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| |||
0 commit comments