aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-19 14:35:44 -0800
committerzotlabs <mike@macgirvin.com>2016-12-19 14:35:44 -0800
commitb1f4ea62061e57c02fc46d2cc185da49d9dbeb1c (patch)
tree07d94ce2b0596ffe077f7a19cfd4a2b99a3dd611
parent350627988eb7813dac69450ff97f03a33e70d9f2 (diff)
parent3fe616b8fe79e5552807931dc6b9339f724a5dc4 (diff)
downloadvolse-hubzilla-b1f4ea62061e57c02fc46d2cc185da49d9dbeb1c.tar.gz
volse-hubzilla-b1f4ea62061e57c02fc46d2cc185da49d9dbeb1c.tar.bz2
volse-hubzilla-b1f4ea62061e57c02fc46d2cc185da49d9dbeb1c.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
-rw-r--r--view/js/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index bfe9d25a3..7b0a1ebed 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -451,10 +451,18 @@ function contextualHelpFocus(target, openSidePanel) {
else {
$("main").removeClass('region_1-on');
}
+
+ var css_position = $(target).parent().css('position');
+ if (css_position === 'fixed') {
+ $(target).parent().css('position', 'static');
+ }
+
$('html,body').animate({ scrollTop: $(target).offset().top - $('nav').outerHeight(true) - $('#contextual-help-content').outerHeight(true)}, 'slow');
for (i = 0; i < 3; i++) {
$(target).fadeTo('slow', 0.1).fadeTo('slow', 1.0);
}
+
+ $(target).parent().css('position', css_position);
}
}