Skip to Content

ViZFrame getVizproperties browser compatibility issue

Hi,

With new Chrome Version 48.0.2564.82 m I have the following error when calling VizFrame.getVizProperties():

Uncaught TypeError: this.getTransformToElement is not a function(…)


I tested with previous Chrome version (47....) and it is Ok.

Is there a new version of VizFrame that solves this issue for latest Chrome browser versions?


Thank you,

D.E.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

9 Answers

  • Best Answer
    Jan 26, 2016 at 11:24 PM
    13

    Hi Dimitris,

    We faced the same issue.

    The reason for the removal in newest version is described here:

    SVG Working Group Teleconference -- 24 Aug 2015

    JointJS Team posted this polyfill:

    SVGElement.prototype.getTransformToElement = SVGElement.prototype.getTransformToElement || function(elem) { return elem.getScreenCTM().inverse().multiply(this.getScreenCTM()); }; 

    Place this code into your 'onInit' function of the 'Main' controller.

    Cheers,

    Pavel

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 11, 2016 at 12:57 PM

    Dear colleagues,

    a fixed version of UI5 has been uploaded:

    https://sapui5.hana.ondemand.com/1.32.11

    Please use this concrete version (1.32.11) for now in your applications.

    Best regards,

    Peter

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Peter,

      I am using lumira server (which uses the SAP UI5 version coming with HANA). I have this issue with the pie charts if the data labels are visible. But I upgraded to HANA containing 1.28.29 and the issue is still there. Is the fix contained also in that version or only in 1.32.11?

      Best regards,

      Nikolay

      Nikolay

      screenshot.PNG (41.6 kB)
  • avatar image
    Former Member
    Feb 02, 2016 at 03:22 PM

    Hy Pavel,

    you saved my day - Thanks for sharing your solution.

    Kind regards,

    Michael

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 05, 2016 at 07:11 AM

    Hi Pavel,

    I also faced the same issue and with your solution am able to solve my issue.

    But here i have a question for you

    1) Why this issue occured?

    2)If i place the code in init method of controller is it going to break the other code any where in my project

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 09, 2016 at 07:48 PM

    Hi All,

    I also faced the same issue and i pasted SVGElement script in the onInit function of main conroled. I could see that still few things are not working as follows:

    1) Show full screen on focus out collapses

    2) Few of my graph lke combination graph not rendering properly.

    Chome Console shows :

    Couldn't rerender '__xmlview5--MeterReadingHistoryTable', as its DOM location couldn't be determined -  sap.ui.Rendering

    Problems while restore focus after rendering: TypeError: Cannot read property 'restoreFocus' of undefined -  [object Object]

    If you have faced these issue. Please guide us.

    Thanks ,

    Varun

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 12, 2016 at 06:12 PM

    Hi colleagues,


    Our Chrome 48 (SVGElement) issue got resolved with the latest patch 1.28.29. Like peter informed , the issue got resolved with SAPUI5 version 1.28.29 and 1.32.11.


    Thanks and regards,

    Varun

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 01, 2016 at 10:08 PM

    Thank you very much Varun, this works very well for me, I had to paste the code you mentioned about SVG.....

    Best regards.

    Jhon Jairo.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 18, 2016 at 12:46 PM

    Thanks Pavel Duchac.

    Its working

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 06, 2016 at 10:33 AM

    Thanks Pavel, solution still working while working with older UI5 library.

    Add comment
    10|10000 characters needed characters exceeded