Skip to content

Fix table row height in Internet Explorer#1537

Closed
CumpsD wants to merge 2 commits into
mui:masterfrom
CumpsD:table-row-height-ie
Closed

Fix table row height in Internet Explorer#1537
CumpsD wants to merge 2 commits into
mui:masterfrom
CumpsD:table-row-height-ie

Conversation

@CumpsD

@CumpsD CumpsD commented Aug 29, 2015

Copy link
Copy Markdown
Contributor

When using the Table from v0.11 with a fixed height, all rows were stretched to be the full height in Internet Explorer:

image

This is because Internet Explorer also needs a height on the tr.

This PR adds the height in the theme, and utilizes it in the table-row.jsx

End result:

image

@oliviertassinari

Copy link
Copy Markdown
Member

What happen if the height of a row is not a constant?

@CumpsD

CumpsD commented Aug 30, 2015

Copy link
Copy Markdown
Contributor Author

This PR does not deal with that, it simply corrects a bug, since right now it is already in the light theme:

https://github.com/callemall/material-ui/blob/master/src/styles/themes/light-theme.js#L168

I simply fixed it to also work in I.

I assume people would pass in a style via props if they wish to divert.

I don't really mind how the fix is, either remove the existing fixed height and leave it up to the user to specify it at both places, or fix it with this PR to be consistent :)

@shaurya947

Copy link
Copy Markdown
Contributor

@CumpsD if this issue still persists with IE, could you please update your branch? We have changed the theming code. Thanks!

@oliviertassinari

Copy link
Copy Markdown
Member

@CumpsD Thanks, we have merge your solution 👍.

mnajdova pushed a commit to mnajdova/material-ui that referenced this pull request Nov 10, 2020
* Rename MuiPickersUtilsPorvider => LocalizationProvider

* Improve utils typings

* Implement global format override

* [docs]  Change name of date-io customization page

* Update examples to include new wording

* Fix prop-types typescript error

* Add daetAdapter prop for passing date-io utils directly to component

* Update percy and cypress

* Unskip flaky test

* Fix typo in error message

* Fix cypress test

* One more try to fix flaky test

* Remove flaky test

* Fix visual regression scenarios tests with new version of cypress

* Run cypress tests in chrome

* Ignore dark theme change in snapshots

* Try to fix example styles one more time

* Fix inccorect name of cypress executor

* Try weird hack to reinject styles

* Optimize theme toggling for visual regression

* Update scenario names to get rid of duplications

* Rename `adapter` => `dateAdapter`

* Rename libFormats => dateFormats, libInstance => dateLibInstance

* Remove version-specific code from README.md

* Fix documentation erros in installation guide

* Run prettier on README.md

* Use edge="end" for keyboard adornment icons, closes mui#1545
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

Successfully merging this pull request may close these issues.

3 participants