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.

    Position of module moves

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 3.0k 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.
    • K Offline
      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
      • ? Offline
        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
        • ? Offline
          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 Offline
            krazykraka
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • K Offline
              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy