Closed attyskater closed 3 years ago
Hi there, Your code in the fiddle has several issues:
right-bottom
the autoposition parameter of option.position should be up
, not down
right-bottom
the positioning offsets - if used - should most probably have negativ values in order to move the hints a bit up and leftThanks for the help! Yes you're right, I completely forgot about the animate.css file while trying to reproduce the problem. Ok, with the setTimeout everything works correctly, but without it no. The hints are positioned in a strange way, if instead of right-bottom you put center-top everything works. Probably it's me that haven't understood how they work yet...
Hi again,
No, it's not you making an error. The problem is probably the use of animations. Each additional hint tries to position relative to the previous hint. But in your example the previous panel is still in transition due to the used animation (and the animation in the example takes some time to reach the final position). So the next panel doesn't get proper position values to work with. If you, for example, use simple fadeIn
and fadeOut
animations everything works fine.
Bottom line: Not all the possible animations go well with jsPanel hints. Especially when a hints position is not reached when the next hint appears. And yes ... I should add a note on this in the docs ...
Hi, Thank you so much for your thorough explanation! I imagined it was a transition issue between placements, however, I hadn't thought about changing the animation.
Yes, maybe an additional note on the documentation would be helpful to everyone. Thanks! see if you can close the report ;)
My pleasure, I added a note to the hint docs ...
When using bottom placement and showing multiple hints they are not stacked correctly, they overlap. You can find an example here.
The other strange thing I don't understand is why on jsfiddle if animations are present the close button doesn't work. As you can see here, the first and last one close correctly but not the middle one.