Unplanned
Last Updated: 29 Jan 2021 09:34 by ADMIN
Brian
Created on: 29 Jan 2021 09:25
Type: Bug Report
2
HTML5 ReportViewer ScaleMode.FitPageWidth does not resize document correctly when 'Maximize'/'Restore Down' window

ReportViewer will resize correctly when the window is resized by manually dragging the frame, but when 'Maximize' or 'Restore Down' buttons are used, the resize will not occur. 

If continues scrolling is turned on, the next page to load in will be in a different size because it will be in the correct size, while the first page remains in the previous size.

A work-around is to add this codesnippet to the HTML, which will trigger the resize:

function resizeViewer() { $("#reportViewer1").trigger('resize'); }
window.addEventListener("resize", resizeViewer);

0 comments