MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Issue with setting height as a percentage

    Troubleshooting
    3
    3
    550
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zack949 last edited by

      I am trying to set the height of MMM-EmbedYoutube to 75% but when I do it uses the default 315px as specified in the modules configuration. If I use a 750 as the height it works fine. I can specify width with a percentage, but not height. Any help is appreciated.

      H 1 Reply Last reply Reply Quote 0
      • H
        Hualm @zack949 last edited by

        @zack949

        @zack949 said in Issue with setting height as a percentage:

        I am trying to set the height of MMM-EmbedYoutube to 75% but when I do it uses the default 315px as specified in the modules configuration. If I use a 750 as the height it works fine. I can specify width with a percentage, but not height. Any help is appreciated.

        'hey did you find a solution of this problem . I need to fix the same issue

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @Hualm last edited by

          @Hualm the module is expecting the number of pixels high and wide.

          and hard codes that into the iframe tag properties.

          I don’t know if u can override that w css
          in custom.css

          .MMM-EmbedYoutube iframe {
               height: 75%;
               width: 75%;
          }
          

          Sam

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy