Skip to content

Commit 27f05bd

Browse files
committed
marker: relax isElementDrawn conditions
Signed-off-by: Mingde (Matthew) Zeng <matthewzmd@posteo.net>
1 parent f384fc8 commit 27f05bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/js/marker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ try {
6363
function isElementDrawn(e, rect) {
6464
var min = isEditable(e) ? 1 : 4;
6565
rect = rect || e.getBoundingClientRect();
66-
return rect.width > min && rect.height > min;
66+
return rect.width >= min || rect.height >= min;
6767
}
6868

6969
function getRealRect(elm) {

0 commit comments

Comments
 (0)