Page MenuHomePhabricator

Internet Explorer compatibility fixes
ClosedPublic

Authored by btrahan on May 14 2014, 3:41 PM.
Tags
None
Referenced Files
F14056567: D9118.id.diff
Sat, Nov 16, 9:00 PM
F14056348: D9118.diff
Sat, Nov 16, 8:04 PM
F14003804: D9118.id21660.diff
Sat, Oct 26, 10:59 AM
F13992024: D9118.id21662.diff
Tue, Oct 22, 1:58 PM
F13977085: D9118.diff
Oct 18 2024, 5:00 PM
F13962328: D9118.id21662.diff
Oct 15 2024, 9:26 AM
F13956641: D9118.diff
Oct 14 2024, 6:29 AM
Unknown Object (File)
Oct 13 2024, 10:13 PM
Subscribers

Details

Summary

A few fixes for IE that makes this work in IE9+ and at least you can drag things and have it fail horribly in IE8 now. Ref T5023.

  • try / catch around getBoundingClientRect because IE throws if the object is not attached to the DOM. The correct value can be inferred in these cases as 0,0
  • turns out IE has different values for button here (1,2,4) than other browsers. special case this by using the other IE fact that 'which' will be null
Test Plan

dragged and dropped tasks successfully in IE9, IE10, and IE11 on Windows 7. dragged and dropped tasks unsuccessfully in IE8 on Windows 7 - they always "drop" to the 2nd position or so as I think the ondrag code isn't firing properly or something

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Internet Explorer compatibility fixes.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added reviewers: epriestley, chad.
This revision is now accepted and ready to land.May 14 2014, 3:45 PM
btrahan updated this revision to Diff 21662.

Closed by commit rP7ab26aef662a (authored by @btrahan).