This is a migrated thread and some comments may be shown as answers.

HTML5 viewer scalling problem

5 Answers 21 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 14 Feb 2018, 05:00 PM

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)

5 Answers, 1 is accepted

Sort by
0
Marcin
Top achievements
Rank 1
Veteran
answered on 15 Feb 2018, 07:10 AM

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.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 15 Feb 2018, 07:27 AM

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.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 15 Feb 2018, 08:08 AM

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.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 16 Feb 2018, 08:09 AM

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.

0
Silviya
Telerik team
answered on 16 Feb 2018, 03:59 PM
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
Tags
General Discussions
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Marcin
Top achievements
Rank 1
Veteran
Silviya
Telerik team
Share this question
or