Commit a74afc30 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1501059: Contextual help positioning wrong in some cases



If the 'i' link is in a span with css position:absolute the computed
position for the help box is incorrect.

Need to allow for this

behatnotneeded

Change-Id: I49dc225ae8f7dc5eabe5cab0f887b74758a6e51e
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 5a1522f5
......@@ -608,9 +608,11 @@ function buildContextualHelpBox(content) {
*/
function contextualHelpPosition(ref, contextualHelpContainer) {
$j(contextualHelpContainer).css('visibility', 'hidden').removeClass('hidden');
var position = $j(ref).position();
var offset = $j(ref).offset();
if ($j(ref).parent().css('position') == 'absolute') {
position.left = offset.left;
}
var containerwidth = $j(contextualHelpContainer).outerWidth(true);
// Adjust the position. The element is moved towards the centre of the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment