Commit 7a1ca7a0 authored by Jen Zajac's avatar Jen Zajac Committed by Robert Lyon
Browse files

Bug 1501059 Fix help pop outs in forms

The previous patch for this didn't work for larger screens.

behatnotneeded

Change-Id: I7d88abbb5ca49dfcbbb45b82b817da26450d645e
(cherry picked from commit 4933019f)
parent 6da46b6b
...@@ -610,9 +610,6 @@ function contextualHelpPosition(ref, contextualHelpContainer) { ...@@ -610,9 +610,6 @@ function contextualHelpPosition(ref, contextualHelpContainer) {
$j(contextualHelpContainer).css('visibility', 'hidden').removeClass('hidden'); $j(contextualHelpContainer).css('visibility', 'hidden').removeClass('hidden');
var position = $j(ref).position(); var position = $j(ref).position();
var offset = $j(ref).offset(); var offset = $j(ref).offset();
if ($j(ref).parent().css('position') == 'absolute') {
position.left = offset.left;
}
var containerwidth = $j(contextualHelpContainer).outerWidth(true); var containerwidth = $j(contextualHelpContainer).outerWidth(true);
// Adjust the position. The element is moved towards the centre of the // Adjust the position. The element is moved towards the centre of the
......
...@@ -474,10 +474,12 @@ ...@@ -474,10 +474,12 @@
} }
.help { .help {
position: absolute; margin-top: 5px;
right: 0; float:right; // can't use absolute because it messes up the pop out
top: 50%; }
margin-top:-20px;
.wysiwyg + .help {
transform: translate(0px, -180px);
} }
.help-inline { .help-inline {
......
Supports Markdown
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