V
V
vvrider2016-04-07 13:05:32
css
vvrider, 2016-04-07 13:05:32

How to fix layout jumps with angluar?

Hello everyone,
There is an issue with a piece of layout. There is a live search that pulls up information from the backend.
When you enter the first letter in the search (for example): e gg , the layout jumps. The found elements from the previous search and the current one do not seem to have time to disappear and both are visible. Also, the new found element does not have time to align and is aligned to the left and only then to the center.
Screenshots:
1. Results of the 1st search for the letter "e"
b58bb526e5ea4456a27ca11a8deaca40.jpg
2. Results of the second search for "eg"
cfb0bdd37cac4376a9bf4ef5491ba0b6.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vvrider, 2016-04-07
@vvrider

It turned out that the whole thing was in the ng-leave properties that were attached to the element disappearance events.
By removing the animation on leave, removed the delay in the disappearance of the 1st element

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question