This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Search box moves to the right when loader and clear icons appear

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10429
    yaniv691yaniv691
    Participant

    Hi,

    My search bar moves a bit to the right when typing a query (when the loader appears). It stays there with the clear icon, but after clearing it moves back to the left.

    How can I fix this strange behavior?

    Thanks,
    Yaniv

    #10431
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    It’s because the container element has additional space to move in, and the search box layout is flexible (because it’s set to a percentage value of 55%) when the loader is displayed.

    You can easily fix it by setting a min-width property or a fixed width for the search box, like so:

    [html].asp_main_container {
    min-width: 250px;
    }[/html]

    #10432
    yaniv691yaniv691
    Participant

    Hi Ernest,

    Thank you very much for the quick response.

    Your fix did the trick!

    Yaniv

    #10433
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Search box moves to the right when loader and clear icons appear’ is closed to new replies.