Im doing application, which draws some components on web with usage of SVG. But when application is looking for drawn SVG image, it's found, left and top values are found, but its height and width is 0. Why?
Code:
pointA = $('.connectionPoint[data-selector="' + selector + '"]');
aOffset = pointA.offset();
x1 = aOffset.left;
y1 = aOffset.top;
console.log("After scroll top: x1=" + x1 + ", y1=" + y1 + ", w=" + pointA.outerWidth() + ",h=" + pointA.outerHeight());
Aucun commentaire:
Enregistrer un commentaire