hildon menu popups in wrong location
Bug #145406 reported by
cwong1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Midbrowser |
Fix Released
|
Medium
|
Alexander Sack |
Bug Description
Sometime the midbrowser menu popups in wrong location. To reprodcue the problem, do the following:
1. open the midbrowser
2. Right click in the browser window to bring up a context menu
3. Close the context menu by click somewhere else in the window
4. Now click on "Home" button at the top left.
You should see the midbrowser shows up in wrong location. The "y" coordinate is off by few pixels.
Carl
To post a comment you must log in.
ok, i landed a layout engine workaround, which hopefully doesn't cause any regressions:
$ git diff HEAD^ xul/base/ src/nsMenuPopup Frame.cpp b/layout/ xul/base/ src/nsMenuPopup Frame.cpp xul/base/ src/nsMenuPopup Frame.cpp xul/base/ src/nsMenuPopup Frame.cpp e::AdjustClient XYForNestedDocu ments ( nsIDOMXULDocument* inPopupD nsIDOMXULDocume nt2> doc = do_QueryInterfa ce(inPopupDoc) ; :tooltip) >TrustedGetTool tipNode( getter_ AddRefs( targetNode) ); >TrustedGetPopu pNode(getter_ AddRefs( targetNode) );
diff --git a/layout/
index fa26e28..952ba96 100644
--- a/layout/
+++ b/layout/
@@ -512,7 +512,7 @@ nsMenuPopupFram
nsCOMPtr<
if (mContent->Tag() == nsXULAtoms:
doc-
- else
+ else if (mContent->Tag() == nsXULAtoms::popup)
doc-
//NS_ WARN_IF_ FALSE(targetNod e, "no popup/tooltip node on document!");