Skip to content

Commit 372e31a

Browse files
committed
Fix the width and height passed to the function to account for cornerRadius
1 parent c643bab commit 372e31a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Imports/ArcGIS/Runtime/Toolkit/Controls.2.0/Callout.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ Item {
300300
// before creating the callout frame
301301
preCalculateWidthAndHeight();
302302
if (platform == "ios")
303-
adjustRelativePositionOfCanvasFrame(anchorPointx, anchorPointy, calloutLayout.width, calloutLayout.height);
303+
adjustRelativePositionOfCanvasFrame(anchorPointx, anchorPointy, calloutLayout.width - 2*cornerRadius, calloutLayout.height - cornerRadius);
304304
else
305305
adjustRelativePositionOfCanvasFrame(anchorPointx, anchorPointy, rectWidth, rectHeight);
306306

@@ -314,7 +314,7 @@ Item {
314314
// once leader position is finalized
315315
if (findBestLeaderPosition(anchorPointx, anchorPointy)) {
316316
if (platform == "ios")
317-
adjustRelativePositionOfCanvasFrame(anchorPointx, anchorPointy, calloutLayout.width, calloutLayout.height);
317+
adjustRelativePositionOfCanvasFrame(anchorPointx, anchorPointy, calloutLayout.width - 2*cornerRadius, calloutLayout.height - cornerRadius);
318318
else
319319
adjustRelativePositionOfCanvasFrame(anchorPointx, anchorPointy, rectWidth, rectHeight);
320320

@@ -383,7 +383,7 @@ Item {
383383
anchors {
384384
left: parent.left
385385
top: parent.top
386-
}
386+
}
387387
columnSpacing: 7 * scaleFactor
388388

389389
Rectangle {

0 commit comments

Comments
 (0)