PIE icon indicating copy to clipboard operation
PIE copied to clipboard

use PIE with E:hover, element jitter occurs in IE

Open gucong3000 opened this issue 11 years ago • 2 comments

.somenode {
    behavior: url(/PIE.htc);
    border: 1px solid red;
    border-radius: 5px;
    display: block;
    height: 500px;
    width: 500px;
    margin: 0;
}
.somenode:hover {
    margin: 20px;
}

I found a bug of IE: Sometimes node.offsetTop & node.offsetLeft is not the value we want. setTimeout for 0Ms, we can get right offsetTop & offsetLeft

gucong3000 avatar Aug 19 '14 04:08 gucong3000

qq 20140819132334

gucong3000 avatar Aug 19 '14 05:08 gucong3000

https://github.com/lojjic/PIE/pull/303 I wrote a test to reproduce the problem and attempt to repair

gucong3000 avatar Aug 19 '14 10:08 gucong3000