mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
parent
470a6e4401
commit
13fcc4a046
949 changed files with 95662 additions and 444 deletions
|
|
@ -1502,8 +1502,17 @@ nsMenuPopupFrame::SetPopupPosition(nsIFrame* aAnchorFrame, bool aIsMove, bool aS
|
|||
screenPoint.MoveBy(margin.left + offsetForContextMenu.x,
|
||||
margin.top + offsetForContextMenu.y);
|
||||
|
||||
// Screen positioned popups can be flipped vertically but never horizontally
|
||||
#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
|
||||
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