morozgrafix / MMM-horoscope

Horoscope Module for MagicMirror²
MIT License
5 stars 3 forks source link

maxWidth not working #2

Closed cowboysdude closed 6 years ago

cowboysdude commented 7 years ago

I put this in my config.js with odds results:

maxWidth: 200px, I also used plain numbers: maxWidth: 200, maxWidth: 20,

No matter what value I tried to assign the module would go 100% across the screen.

Would return to normal [400px] when the maxWidth was removed from config.js.

morozgrafix commented 6 years ago

have you tried to set it to maxWidth: '200px', (note single quotes around '200px', it need to be a string)?

It seems to work for me.

{
    module: 'MMM-horoscope',
    position: 'top_right', // This can be any of the regions.
    config: {
        // See ‘Configuration options’ for additional options and more information.
        sign: 'aries', // Zodiac sign
        maxWidth: '200px',
    }
},

image

morozgrafix commented 6 years ago

I'm going to close this one, feel free to reopen if you still have problems with it.