material icon indicating copy to clipboard operation
material copied to clipboard

md-dialog messed up in IE11 after updating to version 1.0.1

Open zeeshanhyder opened this issue 10 years ago • 4 comments

The md-dialog is completey messed up in ie11 after updating to version 1.0.1. The md-dialog-content is not visible, unless you explicitly mention the height of md-dialog or set the md-dialog as "layout-fill"

Below is the demo: http://codepen.io/zeeshanhyder/pen/WrOzRJ

zeeshanhyder avatar Jan 11 '16 12:01 zeeshanhyder

flex without value is badly supported by IE, and flex="100" isn't by Android default browser/iOS Change flex to flex="auto" in your md-dialog-content and it'll work fine :)

Wardormeur avatar Jan 12 '16 10:01 Wardormeur

@Wardormeur Works now. Thanks. Closing the issue.

zeeshanhyder avatar Jan 12 '16 11:01 zeeshanhyder

Is there a "proper" fix for this in the works?

I'm running 1.0.2, and have run into this issue where in IE11 the dialog takes the proper height, but the width is only wide enough to display the buttons I have in my md-dialog-actions div. I can use the layout-fill trick to get things usable in IE11, but then the dialog takes 100% of the vertical height across all browsers, which obviously isn't desirable.

I've tried the flex="auto" trick, but it doesn't work with my specific dialog. I've also tried specifying a min-width value and that kinda helps, but layout within the window is all screwed up.

Anyway, thanks for posting this technique as it's helping me learn, but I'd love to know if someone is working on getting this to all "just work" in IE11.

sstorie avatar Jan 20 '16 13:01 sstorie

There is no proper fix as the bug is in Internet Explorer itself. So i think we may have rely on workarounds for now, unless there are some changes to code itself. There is a reason why devs hate internet explorer (including me). But the issue is fixed in Edge now (it still sucks!). @sstorie Can you codepen your exact issue. Maybe i can help. :)

zeeshanhyder avatar Jan 21 '16 12:01 zeeshanhyder