Skip to content

Popup not properly sized & positioned #165

@truonggiangdao

Description

@truonggiangdao

I am using the exact versions of the following:

  • Browser: Chome Version: 63.0.3239.84 (Official Build) (64-bit)
  • AngularJS: 1.5.8
  • Angular Bootstrap: 2.3.0
  • Angular UI Tour: 0.9.2

I have installed this library via: NPM

I have observed the following behavior:
I try to show the tour popup after some dynamic content is rendered but the popup is blank and very long.
image

This is how I expected it to behave:
Showing popup at normal size and correct position

Here is my tour config, and all related step configs:

var tourConfig = {
    backdrop: true,
    appendToBody: true
};
var tour = uiTourService.createDetachedTour("myTour", tourConfig);
tour.createStep({
    selector: '#targetEl',
    stepId: 'step1',
    order: 1,
    title: 'Tips',
    placement: 'top-left',
    templateUrl: "tooltipTemplate.html",
    content: 'A long content for the tip.'
});

tour.start();

Additional notes/code:
I think my issue similar to this one: #144 but I already tried:

$timeout(function () {
    tour.reposition();
    $window.scrollTo(0, $window.pageYOffset + 1);
});

I also had to make the fake scroll on window to make the popover auto resize and reposition. But sometime it just doesn't work because the page not long enough to scroll-able.

Also, I think this maybe importance if i change the step placement from "top-left" to "top" or "left" then it works perfectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions