Merge pull request #2592 from dawoe/temp-U4-11233
U4-11233 intro tour step needs to be shown centered
This commit is contained in:
@@ -304,6 +304,12 @@ In the following example you see how to run some custom logic before a step goes
|
||||
scope.elementNotFound = false;
|
||||
|
||||
$timeout(function () {
|
||||
// clear element when step as marked as intro, so it always displays in the center
|
||||
if (scope.model.currentStep && scope.model.currentStep.type === "intro") {
|
||||
scope.model.currentStep.element = null;
|
||||
scope.model.currentStep.eventElement = null;
|
||||
scope.model.currentStep.event = null;
|
||||
}
|
||||
|
||||
// if an element isn't set - show the popover in the center
|
||||
if(scope.model.currentStep && !scope.model.currentStep.element) {
|
||||
|
||||
Reference in New Issue
Block a user