HTML5 viewer scalling problem

6 posts, 0 answers
  1. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 14 Feb 2018 Link to this post

    When I press zoom in or zoom out in HTML5 viewer, the element trv-report-page has set height: 0px; width;0px

    I'm using Firefox 58.

    When I disable width,height in css inspector all looks ok.

    Without disabling report is gone. (hidden)

  2. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 15 Feb 2018 Link to this post

    BTW: Same happens on Opera.

    I found the issue:

    all is related to function setPageDimensions and line 1990 in v12.0.18.125.

    this function is fired too soon. On inilital fire values are 0, then it uses that stored 0 for scalling.

    changing line 1990 to

    if ($target.data("pageWidth") === undefined || $target.data("pageWidth") === 0) {

     fixes issue.

  3. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 15 Feb 2018 in reply to Marcin Link to this post

    One more thing. It is not solving issue totally, there are still moments when it takes 0 as page width when switching between print and interactive views.

    So still not fully solved.

  4. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 15 Feb 2018 Link to this post

    Another approach to the problem:

    all setPageDimensions  are fired now in setTimeout(1). So scaling it working, but it causes another downside - flickers on print view on page change. Because width, height is first removed then re-added to be positioned later.

  5. Marcin
    Marcin avatar
    187 posts
    Member since:
    Jan 2011

    Posted 16 Feb 2018 Link to this post

    Ok, finally got it...

    All issues are related to .loading and .error classes added by viewer js. The same classes were used by other libraries so styles were wrong.

    I've changed all that things and now all is working.

  6. Silviya
    Admin
    Silviya avatar
    380 posts

    Posted 16 Feb 2018 Link to this post

    Hi Marcin,

    This is a follow up from my answer to support ticket #1153796:

    "It is not a known issue for us. I cannot reproduce it without knowing what is included to these external libraries that you have added. Basically, we can not guarantee for the behavior with included external resources that overwrites the default ones. 

    However, thank you for reporting this issue. We will log it into our system for further investigation and improvements."


    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top