Visualize jumps to the top after refresh

I'm using Visualize.js with Vue, when I change resource of my report(or simply filtering data) it's jumps to the top of the page.

What cause the problem?

And is there some sollution to use visualize with vue more smoothly?

davidgolodetsky's picture
Joined: Jun 20 2019 - 1:05am
Last seen: 3 years 8 months ago

I ran into the same issue when using visualize.js to embed visualizations into a JSP page. There's a setting you can use to turn off the scrollToTop, by default it's set to true.

scrollToTop: false

const renderReport = function(v){
var rpt_props = v.report({
resource: RESOURCE_NAME,
container: "#SOME_CONTAINER",
scrollToTop: false,
params: { SOME PARAMS },
success: function(error){

  },
error: function(error){

  }
});
}

https://community.jaspersoft.com/documentation/tibco-jasperreports-server-visualizejs-guide/v71/api-reference-report

matt.wlezen - 3 years 8 months ago

0 Answers:

No answers yet
Feedback