mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 387131, tooltip extends offscreen, r+sr+a=bz
This commit is contained in:
parent
bd3a0402f5
commit
7184c14bb0
@ -213,6 +213,13 @@ nsPopupSetFrame::DoLayout(nsBoxLayoutState& aState)
|
||||
|
||||
// layout the child
|
||||
popupChild->Layout(aState);
|
||||
// if the width or height changed, readjust the popup position. This is a
|
||||
// special case for tooltips where the preferred height doesn't include the
|
||||
// real height for its inline element, but does once it is laid out.
|
||||
// This is bug 228673 which doesn't have a simple fix.
|
||||
if (popupChild->GetRect().width > bounds.width ||
|
||||
popupChild->GetRect().height > bounds.height)
|
||||
popupChild->SetPopupPosition(nsnull);
|
||||
popupChild->AdjustView();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user