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.

    Calendar moves right by 5 px every update

    Scheduled Pinned Locked Moved Bug Hunt
    26 Posts 2 Posters 10.6k 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.
    • E Offline
      emwtur @sdetweil
      last edited by

      @sdetweil
      I’ll reinstall some stuff and try to remove all calendars I had and only use the one from the sample config and see how that goes.
      Should point to something being wrong with my .ics files ( or how they are parsed, if it works
      /P

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

        @emwtur the fix was when there were multiple symbols

        symbol:[x,y,z]

        in the calendar specification

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        E 2 Replies Last reply Reply Quote 0
        • E Offline
          emwtur @sdetweil
          last edited by

          @sdetweil
          Yes I had multiple but tried to remove all of them - didn’t help.

          Anyway having ONLY the cal from config.js.sample looks to work - having restored calendar.js to original

          1 Reply Last reply Reply Quote 0
          • E Offline
            emwtur @sdetweil
            last edited by

            @sdetweil
            it has to do with multiple symbols.
            looks like the bug can be reproduced using the cal setting from the sample file , just add another symbol and watch it move

            {
            		module: "calendar",
            		header: "US Holidays",
            		position: "top_left",
            		config: {
            			calendars: [
            				{
            					fetchInterval: 7 * 24 * 60 * 60 * 1000,
            					symbol: ["calendar-check","google"]
            					url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics"
            				}
            			]
            		}
            	},
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @emwtur
              last edited by sdetweil

              @emwtur great!!! thsnks

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                emwtur @sdetweil
                last edited by

                @sdetweil

                Having single symbols is something I can live with - was just confused - it worked before updating…

                thank YOU for great work with Magic Mirror.
                regards
                /Per-Eric

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

                  @emwtur ok, i made the change , so gotta figure out how i screwed that up

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @emwtur want to try the fix

                    calendar.js , line 915

                    			if (p instanceof Array) {   // keep add brace, remove rest of line or // comment out
                    			 let temp=[]
                    			 p.forEach(name=>{temp.push(className +name)});
                    			 p = temp
                    			}                                                  
                    			else p = className + p;  // keep
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      emwtur @sdetweil
                      last edited by

                      @sdetweil
                      Looks like it’s working with that fix - line numbers didn’t match so I had to think a little before applying - tested with multiple symbols on some cals and both symbols show and stay in place

                      /Per-Eric

                      S 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @emwtur
                        last edited by

                        @emwtur awesome!!!

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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