-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
Resolution/FixedThe described issue is fixed.The described issue is fixed.Status/5. Awaiting next releaseThis issue has been resolved and is waiting for the next release/prerelease.This issue has been resolved and is waiting for the next release/prerelease.Type/Bug
Description
Describe the bug
When display has non-100 % DPI, the height of TextView is calculated as significantly bigger than expected on Windows.
To Reproduce
- Create a
StackLayoutwith twoTextViewcontrols, both with the following content:
\textit{Napětí by se dalo téměř krájet.
Skupina rytířů vkládá do velkého koše poslední zátěž a přesouvá se
ke šlapacímu kolu.
Na povel se začnou pomalu pohybovat a stroj se zachvěje.
Rameno trebuchetu se jen neochotně sklání k zemi.}
\\
Opatrně ho zajistí mohutnou pojistkou.
\\
Několik mužů umístí těžký kámen do koženého vaku.
\\
Všichni ustoupí do bezpečné vzdálenosti od mohutné dřevěné konstrukce.
\\
Trhnutí lanem a kámen letí vstříc nepřátelské pevnosti.
\\
Desítky očí se nemohou odtrhnout od projektilu.
\\
Doletí?
\\
Pokud se těleso bude pohybovat v blízkosti Země (nebo jakékoliv jiné planety), bude na něj působit tíhová síla. Abychom si celou situaci zjednodušili, tak budeme předpokládat, že těleso se pohybuje v těsné blízkosti povrchu Země a jeho trajektorie bude velmi malá (oboje vzhledem k rozměrům Země).
- Set display scaling in Windows Settings to something higher than 100% (I have 150%).
3.Observe the result has significant space between the texts.
Example from my app:
But on 100% scaling display:
Expected behavior
The height should be calculated appropriately regardless of display scaling.
Environment (please complete the following information):
- Platform: CSharpMath.SkiaSharp
- Package Version or Commit: latest
- Device: Windows 10 PC
Metadata
Metadata
Assignees
Labels
Resolution/FixedThe described issue is fixed.The described issue is fixed.Status/5. Awaiting next releaseThis issue has been resolved and is waiting for the next release/prerelease.This issue has been resolved and is waiting for the next release/prerelease.Type/Bug

