In https://www.chromestatus.com/features/5724912467574784 chromium is recommending to use getBoundingClientRect() as a replacement.

But as Cajus said: I'll hesitate to run through qx.bom.element.<Dimension|Location|Scroll> and insert everywhere switches like

( elem instanceof SVGElement ) ? elem.getBoundingClientRect().width : elem.offsetWidth;
or
( elem instanceof SVGElement ) ? elem.getBoundingClientRect().height: elem.offsetHeight;

or similar.

Am 21.03.2016 um 12:38 schrieb Alexander Kirsanov:
I found the issue in the qx.bom.element.Location.
The issue happens in the method *get*, the qooxdoo gets the elem.offsetWidth and elem.offsetHeight, but elem could be an instance of the SVGElement. So, I suppose that the qx should check is it svgelement or not and using the element.getBBox().width instead of elem.offsetWidth in case of SVG. But I’m not sure that it is good solution.


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to