mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Removed UseLayoutRounding handling from MapPanel
This commit is contained in:
parent
9cb4a9be7e
commit
93b58fa01e
7 changed files with 11 additions and 31 deletions
|
|
@ -324,7 +324,7 @@ namespace MapControl
|
|||
break;
|
||||
}
|
||||
|
||||
ArrangeElement(element, new Rect(x, y, size.Width, size.Height));
|
||||
element.Arrange(new Rect(x, y, size.Width, size.Height));
|
||||
}
|
||||
|
||||
private static void ArrangeElement(FrameworkElement element, Size parentSize)
|
||||
|
|
@ -371,7 +371,7 @@ namespace MapControl
|
|||
break;
|
||||
}
|
||||
|
||||
ArrangeElement(element, new Rect(x, y, width, height));
|
||||
element.Arrange(new Rect(x, y, width, height));
|
||||
}
|
||||
|
||||
private static void ArrangeElement(FrameworkElement element, ViewRect rect)
|
||||
|
|
@ -379,7 +379,7 @@ namespace MapControl
|
|||
element.Width = rect.Rect.Width;
|
||||
element.Height = rect.Rect.Height;
|
||||
|
||||
ArrangeElement(element, rect.Rect);
|
||||
element.Arrange(rect.Rect);
|
||||
|
||||
if (element.RenderTransform is RotateTransform rotateTransform)
|
||||
{
|
||||
|
|
@ -391,16 +391,6 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
private static void ArrangeElement(FrameworkElement element, Rect rect)
|
||||
{
|
||||
if (element.UseLayoutRounding)
|
||||
{
|
||||
rect = new Rect(Math.Round(rect.X), Math.Round(rect.Y), Math.Round(rect.Width), Math.Round(rect.Height));
|
||||
}
|
||||
|
||||
element.Arrange(rect);
|
||||
}
|
||||
|
||||
internal static Size GetDesiredSize(FrameworkElement element)
|
||||
{
|
||||
var width = 0d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue