lazy-img attributes img-height img-width don't work · Issue #1553 · deckgo/deckdeckgo · GitHub
Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

lazy-img attributes img-height img-width don't work #1553

Open

Description

@flatmax

Affected part of DeckDeckGo

  • Web Components

Reproduction

Can' use img-width and img-height

Steps to reproduce:

  1.     <deckgo-lazy-img img-src=url img-width=50 img-height=60>        </deckgo-lazy-img>
    

Expected Behavior

The image to resize

Actual Behavior

The image doesn't resize

Environment

  • Browser(s): chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): linux

Activity

  1. peterpeterparker commented on Aug 18, 2022

    @peterpeterparker
    Contributor

    Did you inspect the shadowed dom, are the width and height applied?

    As you can see in the component here

    width and height should be set if the props are set.

  2. flatmax commented on Aug 18, 2022

    @flatmax
    Author

    Oh ok - are you saing that the attributes img-width and img-height aren't working ? I should use the properties instead ?

  3. peterpeterparker commented on Aug 19, 2022

    @peterpeterparker
    Contributor

    Actually I'm saying these should work but asking if you had a look to the shadowed content to see if anything seems not to work as expected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions