question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ac-image` in Internet Explorer 11 stretches from max-width 100% but does not adjust height

See original GitHub issue

Platform

  • JavaScript

Author or host

Web Chat, related to https://github.com/microsoft/BotFramework-WebChat/issues/1944

Version of SDK

1.2

Issue

(card json is provided at the bottom)

On Chrome, an Adaptive Card renders as expected (with Web Chat host config): image

However, when shown in Internet Explorer 11, the image is stretched and also has an invisible overflow that causes the card to display as much larger than expected:

image

Note that the image is stretched and the card no longer appears immediately above the input.

When inspecting the image, unchecking max-width: 100% shows the image in full size, showing that height is unadjusted when max-width is applied, making the image larger than the card’s original borders.

image

This is reproduced on the Adaptive Card visualizer:

image

Below is the json for the card in this example:

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Airports"
                        },
                        {
                            "type": "TextBlock",
                            "spacing": "None",
                            "size": "ExtraLarge",
                            "weight": "Bolder",
                            "text": "Sea-Tac"
                        },
                        {
                            "type": "TextBlock",
                            "spacing": "None",
                            "text": "3 ★★★☆☆ (856) · $$$$",
                            "isSubtle": true
                        },
                        {
                            "type": "TextBlock",
                            "size": "Small",
                            "text": "**Steve G. said** \"Another day, another airport.\"",
                            "wrap": true
                        }
                    ],
                    "width": 2
                },
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "Image",
                            "url": "https://upload.wikimedia.org/wikipedia/commons/2/23/Deltalax_%28cropped%29.jpg"
                        }
                    ],
                    "width": 1
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Action.OpenUrl",
            "title": "More Info",
            "url": "https://www.portseattle.org/sea-tac"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.0",
    "speak": "three of five stars, 856 reviews, Extremely Expensive. Steve G said, \"Another day, another airport\""
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
corinagumcommented, Jun 17, 2019

For Web Chat this is low priority. 😃 I went ahead and edited our broken card with a different (smaller) image to avoid causing this issue.

0reactions
jonmillcommented, Nov 8, 2021

IE11 is not a supported browser

Read more comments on GitHub >

github_iconTop Results From Across the Web

Images max-width max-height not working in IE 11
Following media query has fixed my problem with IE 11. Using viewport units vw and vh instead of percentage for max-width and max-height....
Read more >
Image Stretched Vertically: Responsive Email Question
It looks fine on mobile clients, but is stretching the image vertically on ... Apply 100% width, fixed max-width, auto height and fixed ......
Read more >
Background Image Stretches Too Wide [Outlook 2007/10/13]
Hey guys,. I am trying to finalise this email and whatever I do the background image on the top stretches outside the line...
Read more >
3 Tricks to Resolve Image Stretching Issues in your Website
When you added max-width: 100%; to any image, the width will be adjusted automatically based on the outer element width and you know...
Read more >
Maximum and Minimum Height and Width in Internet Explorer
Behold the seventh wonder of the virtual world: max/min-height and max/min-width properties are possible in Internet Explorer!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found