• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.1k 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 Aug 23, 2017, 6:53 AM

    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 Aug 23, 2017, 7:04 AM Reply Quote 0
    • ? Offline
      A Former User @krazykraka
      last edited by A Former User Aug 23, 2017, 7:06 AM Aug 23, 2017, 7:04 AM

      @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 Aug 23, 2017, 7:09 AM

        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 Aug 24, 2017, 5:45 AM Reply Quote 0
        • K Offline
          krazykraka
          last edited by Aug 23, 2017, 4:20 PM

          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 Aug 24, 2017, 5:45 AM

            @Sean It worked! Thanks! Time to continue on the other modules.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              2/5
              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