Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Fix #4731 (3), round "PixelDimensions"'s display values to integer #4914

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions webextension/selector/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,8 @@ this.ui = (function() { // eslint-disable-line no-unused-vars
this.el.appendChild(this.yEl);
iframe.document().body.appendChild(this.el);
}
this.xEl.textContent = x;
this.yEl.textContent = y;
this.xEl.textContent = Math.round(x);
this.yEl.textContent = Math.round(y);
this.el.style.top = (yPos + 12) + "px";
this.el.style.left = (xPos + 12) + "px";
},
Expand Down