Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions app/tour-step-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,8 @@ export default function (Tether, $compile, $document, $templateCache, $rootScope
* @param step
*/
function showPopup(step) {
//activate Tether
positionPopup(step);

//nudge the screen to ensure that Tether is positioned properly
$window.scrollTo($window.scrollX, $window.scrollY + 1);

//wait until next digest
$timeout(() => {
$timeout(function () {
//show the popup
step.popup.css({
visibility: 'visible',
Expand All @@ -79,6 +73,8 @@ export default function (Tether, $compile, $document, $templateCache, $rootScope
//scroll to popup
focusPopup(step);

//activate Tether
positionPopup(step);
}, 100); //ensures size and position are correct
}

Expand Down