From 56e174c5a926b0d92ad55a05d8e2f40d6f6adf95 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Wed, 4 Apr 2018 08:16:37 +0200 Subject: Doc: use Math.round() in Overlay parent example Change-Id: Ib8c0688e071781e25ef4fdd8a51e302def32215f Reviewed-by: J-P Nurmi --- .../controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc b/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc index 7ad8a003..5562f6a0 100644 --- a/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc +++ b/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc @@ -11,8 +11,8 @@ Button { parent: Overlay.overlay - x: (parent.width - width) / 2 - y: (parent.height - height) / 2 + x: Math.round((parent.width - width) / 2) + y: Math.round((parent.height - height) / 2) width: 100 height: 100 } -- cgit v1.2.3