mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 18:15:46 +01:00
Fix zoom level display for fractional percentages.
This commit is contained in:
@@ -309,7 +309,7 @@ var StatusLine = Module("statusline", {
|
||||
if (percent == 100)
|
||||
this.widgets.zoomlevel.value = "";
|
||||
else {
|
||||
percent = (" " + percent).substr(-3);
|
||||
percent = (" " + Math.round(percent)).substr(-3);
|
||||
if (full)
|
||||
this.widgets.zoomlevel.value = " [" + percent + "%]";
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user