1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:18:00 +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)
{
return name + " | " + mark.location +
" | (" + mark.position.x + ", " + mark.position.y + ")" +
(('tab' in mark) ? " | tab: " + liberator.tabs.index(mark.tab) : "");
return name + ", " + mark.location +
", (" + Math.round(mark.position.x * 100) +
"%, " + Math.round(mark.position.y * 100) + "%)" +
(('tab' in mark) ? ", tab: " + liberator.tabs.index(mark.tab) : "");
}
function removeLocalMark(mark)