1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 20:04:11 +01:00

round mark page positions in log messages

This commit is contained in:
Doug Kearns
2008-09-18 13:44:32 +00:00
parent 22a0a6b9db
commit 7532d5b50b

View File

@@ -1440,9 +1440,10 @@ liberator.Marks = function () //{{{
function markToString(name, mark) function markToString(name, mark)
{ {
return name + " | " + mark.location + return name + ", " + mark.location +
" | (" + mark.position.x + ", " + mark.position.y + ")" + ", (" + Math.round(mark.position.x * 100) +
(('tab' in mark) ? " | tab: " + liberator.tabs.index(mark.tab) : ""); "%, " + Math.round(mark.position.y * 100) + "%)" +
(('tab' in mark) ? ", tab: " + liberator.tabs.index(mark.tab) : "");
} }
function removeLocalMark(mark) function removeLocalMark(mark)