}
windowRect.x = bodyRect.x;
- windowRect.y = bodyRect.y;
+ windowRect.y = bodyRect.y + __arrowTopMargin - __anchorPopupOverlap;
windowRect.width = bodyRect.width;
- windowRect.height = bodyRect.height + arrowRect.height;
+ windowRect.height = bodyRect.height + arrowRect.height - (__arrowTopMargin - __anchorPopupOverlap);
bodyRect.x = 0.0f;
- bodyRect.y = __arrowTopMargin - __anchorPopupOverlap;
+ bodyRect.y = 0.0f;
// Set arrow position
arrowRect.x = anchorPosition.x - (arrowRect.width / 2.0f) - windowRect.x;
- arrowRect.y = bodyRect.height;
+ arrowRect.y = bodyRect.height - (__arrowTopMargin - __anchorPopupOverlap);
}
else if (dropPosition == CONTEXT_MENU_CORE_DROP_POSITION_DOWN) // up Arrow
{
windowRect.x = bodyRect.x;
windowRect.y = bodyRect.y - arrowRect.height;
windowRect.width = bodyRect.width;
- windowRect.height = bodyRect.height + arrowRect.height;
+ windowRect.height = bodyRect.height + arrowRect.height - __arrowBottomMargin + __anchorPopupOverlap;
bodyRect.x = 0.0f;
bodyRect.y = arrowRect.height - __arrowBottomMargin + __anchorPopupOverlap;
bodyRect.y = bottomBoundary - bodyRect.height;
}
- windowRect.x = bodyRect.x;
+ windowRect.x = bodyRect.x + __arrowRightMargin - __anchorPopupOverlap;
windowRect.y = bodyRect.y;
- windowRect.width = bodyRect.width + arrowRect.width;
+ windowRect.width = bodyRect.width + arrowRect.width - (__arrowRightMargin - __anchorPopupOverlap);
windowRect.height = bodyRect.height;
- bodyRect.x = __arrowRightMargin - __anchorPopupOverlap;
+ bodyRect.x = 0.0f;
bodyRect.y = 0.0f;
// Set arrow position
- arrowRect.x = bodyRect.width;
+ arrowRect.x = bodyRect.width - (__arrowRightMargin - __anchorPopupOverlap);
arrowRect.y = anchorPosition.y - (arrowRect.height / 2.0f) - windowRect.y;
}
else // left Arrow
windowRect.x = bodyRect.x;
windowRect.y = bodyRect.y;
- windowRect.width = bodyRect.width + arrowRect.width;
+ windowRect.width = bodyRect.width + arrowRect.width - __arrowLeftMargin + __anchorPopupOverlap;
windowRect.height = bodyRect.height;
bodyRect.x = arrowRect.width - __arrowLeftMargin + __anchorPopupOverlap;
}
windowRect.x = bodyRect.x;
- windowRect.y = bodyRect.y;
+ windowRect.y = bodyRect.y + __arrowTopMargin - __anchorPopupOverlap;
windowRect.width = bodyRect.width;
- windowRect.height = bodyRect.height + arrowRect.height;
+ windowRect.height = bodyRect.height + arrowRect.height - (__arrowTopMargin - __anchorPopupOverlap);
bodyRect.x = 0.0f;
- bodyRect.y = __arrowTopMargin - __anchorPopupOverlap;
+ bodyRect.y = 0.0f;
// Set arrow position
arrowRect.x = anchorPosition.x - (arrowRect.width / 2.0f) - windowRect.x;
- arrowRect.y = bodyRect.height;
+ arrowRect.y = bodyRect.height - (__arrowTopMargin - __anchorPopupOverlap);
}
else if (dropPosition == CONTEXT_MENU_CORE_DROP_POSITION_DOWN) // up Arrow
{
windowRect.x = bodyRect.x;
windowRect.y = bodyRect.y - arrowRect.height;
windowRect.width = bodyRect.width;
- windowRect.height = bodyRect.height + arrowRect.height;
+ windowRect.height = bodyRect.height + arrowRect.height - __arrowBottomMargin + __anchorPopupOverlap;
bodyRect.x = 0.0f;
bodyRect.y = arrowRect.height - __arrowBottomMargin + __anchorPopupOverlap;
bodyRect.y = bottomBoundary - bodyRect.height;
}
- windowRect.x = bodyRect.x;
+ windowRect.x = bodyRect.x + __arrowRightMargin - __anchorPopupOverlap;
windowRect.y = bodyRect.y;
- windowRect.width = bodyRect.width + arrowRect.width;
+ windowRect.width = bodyRect.width + arrowRect.width - (__arrowRightMargin - __anchorPopupOverlap);
windowRect.height = bodyRect.height;
- bodyRect.x = __arrowRightMargin - __anchorPopupOverlap;
+ bodyRect.x = 0.0f;
bodyRect.y = 0.0f;
// Set arrow position
- arrowRect.x = bodyRect.width;
+ arrowRect.x = bodyRect.width - (__arrowRightMargin - __anchorPopupOverlap);
arrowRect.y = anchorPosition.y - (arrowRect.height / 2.0f) - windowRect.y;
}
else // left Arrow
windowRect.x = bodyRect.x;
windowRect.y = bodyRect.y;
- windowRect.width = bodyRect.width + arrowRect.width;
+ windowRect.width = bodyRect.width + arrowRect.width - __arrowLeftMargin + __anchorPopupOverlap;
windowRect.height = bodyRect.height;
bodyRect.x = arrowRect.width - __arrowLeftMargin + __anchorPopupOverlap;