Ver código fonte

fix rounding error on screens page.

Dan Walmsley 4 anos atrás
pai
commit
3e690c5fbc
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      samples/ControlCatalog/Pages/ScreenPage.cs

+ 1 - 1
samples/ControlCatalog/Pages/ScreenPage.cs

@@ -67,7 +67,7 @@ namespace ControlCatalog.Pages
                     context.DrawText(drawBrush, boundsRect.Position.WithY(boundsRect.Size.Height + 80), text);
                 }
 
-            context.DrawRectangle(p, new Rect(w.Position.X / 10f + Math.Abs(_leftMost), w.Position.Y / 10, w.Bounds.Width / 10, w.Bounds.Height / 10));
+            context.DrawRectangle(p, new Rect(w.Position.X / 10f + Math.Abs(_leftMost), w.Position.Y / 10f, w.Bounds.Width / 10, w.Bounds.Height / 10));
         }
     }
 }