Community-edition: Zoom level is reset at random times

Created on 22 Oct 2016  路  26Comments  路  Source: ramboxapp/community-edition

Steps to reproduce

  1. Press Ctrl + + to zoom in
  2. Keep using the tab normally

    Expected behavior

The content of the tab should be zoomed in and stay that way

Actual behavior

The content of the tab is zoomed in for a while. Then suddenly, often after very short time, other times a bit longer, the zoom level is reset. Using Ctrl + + again zooms in one more level from the first zoom level (say you zoom in to level 1, it resets to level 0, when you zoom in again it goes directly to level 2)

ENVIRONMENT

Rambox: v0.4.4

OS: Ubuntu Gnome 16.04

Arch: x64

investigate

Most helpful comment

In v.4.0.4 on Ubuntu 16.10, I have problems in Facebook Messenger, Hangouts and Gmail. They reset zoom level when changing/opening conversation/email.

WhatsApp seems to be functioning smoothly.

Can I possibly set the default zoom level (or min. font size) somewhere behind the scenes?

All 26 comments

Did you try zooming in different services?

I have the issue with Gmail, Messenger and one custom service (Facebook), but not with Tweetdeck or Slack, it seems.

Same happens to me on Skype, Hangouts and HipChat

Same happens to me on Slack (exclusively) on MacOS Sierra. Skype and Hangouts are in the normal shape.

On OSx Yosemite, happens all the time. Slack's become highly unreliable due to it's random zooming.

@rStheBot, Do you know any reference to the official description of mentioned Slack issue? I haven't found any via Google.

(Only) Slack is doing this to me, it's driving me crazy.

  • Mac: El Capitan (10.11.6)
  • Slack: 2.3.2 Beta Channel

I'm getting this as well. Only Slack. I'm on Windows. It seems like it zooms out to a tiny level at times. I then zoom in, and i overshoot my desired zoom level. i.e. say my zoom level is naturally 150%. I'll come back to slack and it will be at 75%. I then zoom in and find myself at 175%. I then zoom out and i'm back at 150%. I believe slack thinks it is still at 150% (hence why it jumps to 175%), even though it's actually displaying at 75%.

(Note: my numbers are made up. I have no idea what the actual zoom stops are. But i'm just using them to make what's going on clearer).

This started happening around 1-2 weeks ago i think.

image

I'm having the exact same issue as @CyrusNajmabadi on windows 7 since 1-2 weeks.

Same issue here. Will set zoom level to 2, for example, and focus on other app windows. Re-select Slack, and the chat window text resets to default size. Adjusting zoom settings adjusts relative to last remembered setting, does not adjust from default size.

OS: MacOS Sierra 10.12.1
Slack: v2.3.2 (direct download)

Same here, Rocketchat on Rambox 0.4.5 on Linux Mint 18
Zooming in, mostly switching Channels resets zoom level, Ctrl-+ "overzooms" one level, so i need to zoom out one step again.

Same here Ubuntu Gnome 16.04.1, CTRL + R or re-opening the app reset's all zoom levels. This gets tedious on a HDPI screen.

After reading through rambox/app/ux/WebView.js my guts are telling that the zoom level of an WebView gets applied only when the zooming events (zoomIn, zoomOut, ressetZoom) are triggerd. But not when the contents of the WebView gets (re-)loaded.
(My observations of the zoom behaviour tells me that the different services tend to reload/reset the webview quite often.)

...
webview.getWebContents().setZoomLevel(me.zoomLevel);
...

Would it make the zoom level more reliable if it gets also applied in the handler for the "dom-ready" event of the webView?
Or maybe another event of the <webview> element could be used ("did-navigate" for example)?

Since I'm not familiar with the source code of Rambox and I couldn't get the setup running on my machine (Sencha dependency fun..) I would love to have someone else to test my suggestion.

My feet didn't keep still...
...and finally I got the development environment set to be able to fiddle with the source code.

And I got lucky while fiddling around with the rambox/app/ux/WebView.js code!

Currently the zoom methods do this:

webview.getWebContents().setZoomLevel(me.zoomLevel);

If they would do the same like this:

webview.setZoomLevel(me.zoomLevel);

everything zooms as expected (at least in my development version).

Even though the zoom level maintenance became better / more stable after last Rambox release (including fix mentioned above) it is still not good enough and the random zoom level resets happen still for me.

Hence I suggest to re-open this issue.

Yes, I've noticed that too.

In all services or just a few?

In v.4.0.4 on Ubuntu 16.10, I have problems in Facebook Messenger, Hangouts and Gmail. They reset zoom level when changing/opening conversation/email.

WhatsApp seems to be functioning smoothly.

Can I possibly set the default zoom level (or min. font size) somewhere behind the scenes?

@rendsvig No =(

@saenzramiro Maybe this could be helpful?
https://github.com/Thomas101/wmail/issues/597

Yep I'm still getting this and it's really bothersome :( @saenzramiro

Fixed in Electron v1.6.4.

We will update Electron to the latest version for next release.

Hopefully this gets done soon :)

Has this fix been implement in the current release (0.5.13) or will it be in 0.5.14?

issue still persists on 0.5.17

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bnn-y picture bnn-y  路  4Comments

juanmlambre picture juanmlambre  路  3Comments

MakuSensei picture MakuSensei  路  4Comments

LiBOSS-CZ picture LiBOSS-CZ  路  4Comments

andrii-riabchun picture andrii-riabchun  路  3Comments