Sets offset of fontMetrics div to be 0.
Offsetting the fontMetrics div causes the 'ghost image' created when drag and dropping an Ace Editor to be offset by that same amount. By removing the offset we fix the problem. Closes #2240.
This commit is contained in:
parent
c5c1bb2b13
commit
a45385be98
1 changed files with 2 additions and 2 deletions
|
|
@ -82,9 +82,9 @@ var FontMetrics = exports.FontMetrics = function(parentEl, interval) {
|
|||
|
||||
this.$setMeasureNodeStyles = function(style, isRoot) {
|
||||
style.width = style.height = "auto";
|
||||
style.left = style.top = "-100px";
|
||||
style.left = style.top = "0px";
|
||||
style.visibility = "hidden";
|
||||
style.position = "fixed";
|
||||
style.position = "absolute";
|
||||
style.whiteSpace = "pre";
|
||||
|
||||
if (useragent.isIE < 8) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue