mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-19 19:12:30 +02:00
Fallback to useable clipboard on Windows. Closes issue #690.
This commit is contained in:
1 parent
5b8fa19a3a
commit
0029f7bd16
2 files changed
+11
-8
No files matched your search
@@ -1518,13 +1518,18 @@ var Buffer = Module("Buffer", {
|
||||
},
|
||||
|
||||
_exWidth: function _exWidth(elem) {
|
||||
let div = DOM(<elem style="width: 1ex !important; position: absolute !important; padding: 0 !important; display: block;"/>,
|
||||
elem.ownerDocument).appendTo(elem.body || elem);
|
||||
try {
|
||||
return parseFloat(div.style.width);
|
||||
let div = DOM(<elem style="width: 1ex !important; position: absolute !important; padding: 0 !important; display: block;"/>,
|
||||
elem.ownerDocument).appendTo(elem.body || elem);
|
||||
try {
|
||||
return parseFloat(div.style.width);
|
||||
}
|
||||
finally {
|
||||
div.remove();
|
||||
}
|
||||
}
|
||||
finally {
|
||||
div.remove();
|
||||
catch (e) {
|
||||
return parseFloat(DOM(elem).fontSize) / 1.618;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user