• Resolved wpking99

    (@wpking99)


    Hi, thanks for this nice plugin. Some parts still need improvement but I really appreciate your work.

    Currently I am having a problem with embedding images from external urls into my table by using “<img src=”…”></img>. No matter what I do, the plugin seems to set the width automatically to widht:100% and some random value as max-width of the image. Say I try to embed an 160x160px image, for some reason some of the images will have max-width 160px, others 134px, and so on. It is also not possible to overwrite these settings with the style attribute inside the <img> tags.

    Any idea what the reason may be?

    https://ww.wp.xz.cn/plugins/data-tables-generator-by-supsystic/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter wpking99

    (@wpking99)

    If this information helps you: this happens only when you first visit the page with the table. When hitting Refresh 1 time, all images will have proper max-width (but still set automatically)

    Plugin Author supsystic

    (@supsysticcom)

    Hello!
    Please provide me link to the page with table and detailed description about dimensions, which you have specified for images. I will check what is wrong.

    Thread Starter wpking99

    (@wpking99)

    Example Page would be http://www.lautsprecher-tests.de/lautsprecher-vergleich/. All Images have set a <img style=”max-width:160px”> and no width. Still all of the images get a random max-width at the first pageload and a width of 100%. If I try to overwrite the width, it doesn t work either.

    It only seems to happen at first load within current firefox version 44.0.2. As for my current test, internet explorer 11 doesn t seem to have this problem.

    Plugin Author supsystic

    (@supsysticcom)

    Hello!
    I tried to check you tables on different browsers but I cannot reproduce the issue. I can see only thе problem with this image on Firefox at first load – http://prntscr.com/aaqi51 – Is this the problem which you are talking about?
    All other images are displayed correctly.
    Perhaps you can make screenshots, and provide more detailed description. Then I will be happy to help you.

    Thread Starter wpking99

    (@wpking99)

    That’s exactly the issue I was talking about and the image where it is most obvious, but the other images are affected aswell. If you take a look into the browser’s code inspector, you will see that this image has a max-width: 134px and width: 100%, although I only set the max-width to be 160px.

    <a ...><div style="margin-top:5px"><img style="max-width:160px" src="..." ></div></a>

    All other images seem to be displayed correctly, but for real they also have those random max-widths and 100% width and not 160px as they should have. So these values are somehow generated through the plugin. Only after Page reload it is back to correct widths.

    Thread Starter wpking99

    (@wpking99)

    I tried to find the code inside the plugin files which sets the widths for inserted images but failed, maybe you can help me out there.

    In the meantime at least I could find a workaround to resolve this firefox-issue for the moment. I had to create a new CSS rule to overrule the wrong widths from the plugin:

    #supsystic-table-5 img {
    	width: auto !important;
    	max-width:160px !important;
    }

    I don’t like this solution but it helps. But please take a look into the problem or give me a hint where I could find the problem inside the plugin files.

    Plugin Author supsystic

    (@supsysticcom)

    Hello!
    I gave the issue to our developer. He will try to clarify and fix the problem on next week.
    I will inform you about the progress.

    Plugin Author supsystic

    (@supsysticcom)

    Hello!
    We tried to reproduce this issue on our test servers – and have no luck with this.
    Please contact us through our internal support. We will check what is wrong and will help you to solve the problem.

    Plugin Author supsystic

    (@supsysticcom)

    Hi!
    We have released new version of plugin with fixes for you. Please update plugin and check it.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Automatic Image Width’ is closed to new replies.