simplenetspeed icon indicating copy to clipboard operation
simplenetspeed copied to clipboard

Top bar button refresh abnormally.

Open STARRY-S opened this issue 4 years ago • 8 comments

I run into this problem on my Arch Linux with the latest version of this extension installed.

https://user-images.githubusercontent.com/41445339/123545593-692e4c80-d78b-11eb-90ff-85abb850410b.MOV

PS: I changed the refreshTime to 1 second in order to better show this problem. And the gnome shell version is 40.2

STARRY-S avatar Jun 27 '21 13:06 STARRY-S

After I commented all width property in stylesheet.css, it run into normal. It seems like a GNOME bug but I do not know how to fix it.

STARRY-S avatar Jul 03 '21 11:07 STARRY-S

removing width is workaround, but resized too often

biji avatar Jul 05 '21 14:07 biji

removing width is workaround, but resized too often

You can use min-width property of css, instead of regular width and it can even be less like 5.5em per element after that it will resize to fit.

This is what I used in my fork netspeedsimplified and it worked like charm.

prateekmedia avatar Jul 05 '21 15:07 prateekmedia

You can use min-width property of css, instead of regular width and it can even be less like 5.5em per element after that it will resize to fit.

I second this. This fixed the issue immediately.

JoalpaLe avatar Jul 15 '21 13:07 JoalpaLe

@JoalpaLe Maybe you can create the pull request as I see that @biji only does bare maintenance of this extension.

prateekmedia avatar Jul 15 '21 14:07 prateekmedia

@JoalpaLe when resizing, all extensions on left will move too much, thats why I prefer static width. For example 0 B to 1000 MB

biji avatar Jul 18 '21 04:07 biji

https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/685#issuecomment-938450567

This bug has fixed in gnome mutter: https://gitlab.gnome.org/GNOME/mutter/-/commit/867db93043dd3c93d8ccb6cb197d4a3687d3a5e5

So we need to wait until a new version release ( maybe 41.xx... ).

STARRY-S avatar Oct 24 '21 05:10 STARRY-S

paradoxxxzero/gnome-shell-system-monitor-applet#685 (comment)

This bug has fixed in gnome mutter: https://gitlab.gnome.org/GNOME/mutter/-/commit/867db93043dd3c93d8ccb6cb197d4a3687d3a5e5

So we need to wait until a new version release ( maybe 41.xx... ).

I also found a temporary way to fix this issue by forcely refresh button: https://github.com/STARRY-S/simplenetspeed/commit/1f5b313dbd2dde5260784f67d4c05f58f9a13ec5

(refer: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/40e22eb524556e63efa4285c1a9d8f872a507499/js/ui/panel.js#L1076)

Maybe we can use this way to temporally fix this issue before GNOME releases its new update.

STARRY-S avatar Oct 24 '21 05:10 STARRY-S