MagicMirror Forum

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

    Position of module moves

    Troubleshooting
    2
    5
    2582
    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.
    • K
      krazykraka last edited by

      I’ve been trying to position a module (compliments) better to gain more real estate on the screen. I was successfully able to move it in the custom.css file, but once the compliments module reaches the interval timer and updates to a new compliment, it moves back to the original position on the screen. I’m at a loss as to why this is happening. Can anybody point me or guide me as to why this is happening?

      Thanks!

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @krazykraka last edited by A Former User

        @krazykraka Why don’t you use position in config.js ?
        Every time the module should be redrawn(via .getDom()), MagicMirror puts the DOM into the region container which is defined in your config.js.

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by

          So, if you want to hook this mechanism, You should modify your module not to be dependent on .getDom(), and you should draw and insert your DOM by yourself.

          K 1 Reply Last reply Reply Quote 0
          • K
            krazykraka last edited by

            Ok gotcha. I’ll give that a try after work. Thanks!

            1 Reply Last reply Reply Quote 0
            • K
              krazykraka @Guest last edited by

              @Sean It worked! Thanks! Time to continue on the other 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