range_fix 0.1.2+1
range_fix: ^0.1.2+1 copied to clipboard
A workaround for the Range.getClientRects bug in Chrome.
range_fix #
A workaround for the Range.getClientRects bug in Chrome. A dart port of rangefix.
Usage #
A simple usage example:
final range = window.getSelection().getRangeAt(0);
final rects = RangeFix.getClientRects(range);
for (final rect in rects) {
// Do whatever you want.
}
Features and bugs #
Please file feature requests and bugs at the issue tracker.