From 9b2fc5741ecdc2e10710fa23140c16a9d82a5508 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 9 Apr 2014 14:44:58 +0800 Subject: [PATCH] MDL-44844 core: Fix custom menu navigation Atto introduced a rule to hide all Nodes with the yui3-menu-hidden class but this rule is too general and applies to non-atto content too. As a result, when loading the menu and during the XY calculation, the native Element.getBoundingClientRect() function was returning a bounding box size of 0 because the Node was not visible and the node was being hidden from view when it was later made visible. --- lib/editor/atto/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/editor/atto/styles.css b/lib/editor/atto/styles.css index c416a6f91c6..84be800903b 100644 --- a/lib/editor/atto/styles.css +++ b/lib/editor/atto/styles.css @@ -155,7 +155,7 @@ div.editor_atto_content:hover .atto_control { display: block; } -.yui3-menu-hidden { +.editor_atto_menu.yui3-menu-hidden { display: none; }