MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    how to set module div for fullscreen

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 3.3k Views 2 Watching
    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.
    • S Offline
      sdetweil
      last edited by

      so close…

      client Height/Width is the screen, but the body has height/width reduced by margins…

      how can I get the size of the margin in javascript to do the corrections programatically?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @sdetweil
        last edited by

        @sdetweil there are units called view width and view height, try those

        100vw and 100vh

        Please create a github issue if you need help, so I can keep track

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @strawberry 3.141
          last edited by

          @strawberry-3-141 thanks… sadly this re-introduces the margins in both dimensions

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            here is another way.

            window.getComputedStyle(document.body).getPropertyValue('margin-top');
            

            now… i forgot that I had a custom.css to eliminate the margins.

            but the fullscreen style still has the -60 adjustments for the default border

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              Using the fullscreens.above class for the div makes this a lot easier. No modification of the std css is required

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy