mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals from /layout
This commit is contained in:
parent
df94ccb22c
commit
02c59100a8
19 changed files with 11 additions and 371 deletions
|
|
@ -1502,17 +1502,8 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
|
|||
screenPoint.MoveBy(margin.left + offsetForContextMenu.x,
|
||||
margin.top + offsetForContextMenu.y);
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// OSX tooltips follow standard flip rule but other popups flip horizontally not vertically
|
||||
if (mPopupType == ePopupTypeTooltip) {
|
||||
vFlip = FlipStyle_Outside;
|
||||
} else {
|
||||
hFlip = FlipStyle_Outside;
|
||||
}
|
||||
#else
|
||||
// Other OS screen positioned popups can be flipped vertically but never horizontally
|
||||
// Screen positioned popups can be flipped vertically but never horizontally
|
||||
vFlip = FlipStyle_Outside;
|
||||
#endif // #ifdef XP_MACOSX
|
||||
}
|
||||
|
||||
// If a panel is being moved or has flip="none", don't constrain or flip it. But always do this for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue