Magicmirror: Zoom-Error

Created on 8 Jun 2017  Â·  16Comments  Â·  Source: MichMich/MagicMirror

Hi,
I have some issues with the zoom-function in the config.txt.
I set the zoom for testing to a value of 0.7 like this:

zoom: 0.7,
After this i wanted to set it back with deleting the code-line but nothing happened.
I tried to reset it with:
zoom: 1.0,
but nothing changes. It doesnt even mather if the number is 0 or 100, the size of everything stays the same. My problem now is that the zoom worked for me the one time I used it first. But I can't get it back to normal size.
It is like the problem that icekuhn mentioned in the last post here:
https://forum.magicmirror.builders/topic/1521/zoom-scaling

Most helpful comment

Go to your magic mirror folder and then to css and then towards the custom.css
Inside
body
{
zoom: 144%;
}
Thank me later.

All 16 comments

Can't reproduce your issue.

Setting zoom: 0.25, gives a zoom factor of 4.
By deleting this line again, it's back to default.
Also when setting zoom: 1,.

We are actually having the same problem. Set the zoom in config to 2.0, changed it back but it just stayed zoomed. We even used a completely new clone of MagicMirror and the problem persisted, so it might be something in the Electron cache or something.

Setting the zoom in the CSS file worked.

Ok, got same problem…
Connecting the keyboard and hitting Ctrl+0 to reset zoom seemed to work.
Seems that zoom value is being cached somewhere…

There is a mechanism to cache zoom values per domain in Chrome/Chromium, this might have made its way into some versions of Electron as well and be interfering with MM settings. Could you post the specific versions and system you're running? I'll try and reproduce, since I introduced the zoom feature in the first place I might as well try and fix it :)

In our case it looks like Electron 1.6.11 and MagicMirror 5c41e24b9927e36ba0f7039fd87b9fa5ca82e4a1

@jukums thx for the tip with CTRL+0. That helped :+1:

@FREDSWG in the post above, recommended updating the MagicMirror/css/custom.css file with the following.

body {
zoom: 75%;
}

It's working great for me until the cache issue gets fixed.

Same problem here!

Same Problem here!

This unfortunately is a Electon issue. Not much we can do.

Reboot

I have this same issue. Considering 9 months has passed, maybe electron will be updated? as per the post, use an attached keyboard to my pi, I am able to do a ctrl+0 to return size to 100% however I am unable to adjust the size via configuration file afterwards.

I may try the CSS modification as well since right now the config modification will not let me change things a second time.

The next version of mm will include electron 2. You might wanna check if that solves the issue.

put it in your _custom.css_ file...

body {
zoom: 75%; <<<=== *Like this*
}
`

this is without the zoom...

screenshot 13

This is with zoom...

screenshot 14

Go to your magic mirror folder and then to css and then towards the custom.css
Inside
body
{
zoom: 144%;
}
Thank me later.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mc-landin picture mc-landin  Â·  3Comments

Korysam15 picture Korysam15  Â·  12Comments

metalshreds picture metalshreds  Â·  6Comments

randomrushgirl picture randomrushgirl  Â·  6Comments

vvzvlad picture vvzvlad  Â·  7Comments