Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter input fields too long in IE #194

Open
dkunzler opened this issue Feb 22, 2017 · 3 comments
Open

Filter input fields too long in IE #194

dkunzler opened this issue Feb 22, 2017 · 3 comments

Comments

@dkunzler
Copy link

We're using iron-data-table in our project and want to make it compatible with IE 11.
Unfortunately the input fileds for filtering are too long (depending on the number of columns) which results in the sorting arrows not being seen.

Problem can even be reproduced on the demo page with IE 11.
https://saulis.github.io/iron-data-table/demo/filtering.html

Last table on the page looks like this in IE:
image

This is how it looks in Chrome and how I would expect it to look:
image

Any thoughts or comments on that?

@Saulis
Copy link
Owner

Saulis commented Apr 21, 2017

Hi!

I recommend defining a custom template for the headers and figuring out styles which work also for IE11.

@KnottStudios
Copy link

KnottStudios commented May 1, 2017

something like this in your shared-styles.html will fix it:

data-table-column-sort {
margin-left: -20px;
z-index: 10;
}
data-table-column-filter {
width: 95%;
}

@dkunzler
Copy link
Author

dkunzler commented May 5, 2017

Thanks @KnottStudios it worked. Since it is a bit more ugly in terms of spacing than the original in Chrome I put it into a media query for IE like so:

       @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
            data-table-column-sort {
                margin-left: -20px;
                z-index: 10;
            }

            data-table-column-filter {
                width: 95%;
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants