Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Fix top and left positions that were working incorrectly because …
Browse files Browse the repository at this point in the history
…of hidden root element
  • Loading branch information
nazar-pc committed Mar 6, 2018
1 parent 1a271f7 commit f0e8ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pickmeup.js
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@
return;
}
if (!options.flat) {
dom_remove_class(root_element, 'pmu-hidden');
if (options.position instanceof Function) {
position = options.position.call(target);
left = position.left;
Expand Down Expand Up @@ -973,7 +974,6 @@
}
root_element.style.left = left;
root_element.style.top = top;
dom_remove_class(root_element, 'pmu-hidden');
setTimeout(function () {
dom_on(target, document.documentElement, 'click', options.bound.hide);
dom_on(target, window, 'resize', options.bound.forced_show);
Expand Down

0 comments on commit f0e8ece

Please sign in to comment.