kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
558 stars 302 forks source link

.kv-loader loading gif is not centered correctly #1060

Open gb5256 opened 1 year ago

gb5256 commented 1 year ago

Hi, this is also happening on the demo page: https://demos.krajee.com/grid-demo

If you for example sort by column, then a loading gif will be displayed. But this gif is not centered correctly. It looks like the top left corner of the GIF is in the center, but the whole div is then off-center, based on its width. I do use a different gif in my setup which is much wider then the default, but then the issue is even more visible.

I tried to change it via CSS (using display:flex etc), but was not able to do so as the script of kartik will add display:block to render it and that way overrules my css changes.

Can this be solved? Or is there a way to solve it by myself via CSS?

Thanks. gb5256