Ticket T1279911
Visible to All Users

Problem with the Angular report viewer: when I apply a 0.6 zoom, the format dropdown becomes misaligned.

created 5 days ago

I have the following Angular code, but when I apply zoom on smaller resolutions, the report viewer dropdown becomes misaligned.

It seems to be caused by the dx-overlay-wrapper class.

Show previous comments (6)
DL DL
Diego Loaiza a day ago

    imagen (1).jpg
    imagen.jpg

    Hi, I couldn't send you the project because it weighs more than 130mb, but as you can see I applied the zoom and the combos look misaligned, just add this in the ts report-viewer.ts

    ngAfterViewInit() {
    const zoomContainer = this.document.body;
    if (zoomContainer) {
    this.renderer.setStyle(zoomContainer, 'zoom', '69%');
    }
    }

    Boris (DevExpress Support) 8 hours ago

      Hello,

      I couldn't send you the project because it weighs more than 130mb

      If the project's size is greater than 30MB, please clear the "bin", "obj", "node_modules", ".vs", and "packages" folders from the solution and project folders, and recreate the archive to submit it to our Support Center. Another way is to send the project in chunks: https://www.win-rar.com/split-files-archive.html?&L=0.

      However, as far as I understand, I can apply some change to the report-viewer.ts file to reproduce the issue. As you may have already seen in the project I sent previously, here is the content of my report-viewer.ts file:

      TypeScript
      import { Component, Inject, ViewEncapsulation } from '@angular/core'; @Component({ selector: 'report-viewer', encapsulation: ViewEncapsulation.None, templateUrl: './report-viewer.html', styleUrls: [ "../../../node_modules/devextreme/dist/css/dx.material.blue.light.css", "../../../node_modules/@devexpress/analytics-core/dist/css/dx-analytics.common.css", "../../../node_modules/@devexpress/analytics-core/dist/css/dx-analytics.material.blue.light.css", "../../../node_modules/devexpress-reporting/dist/css/dx-webdocumentviewer.css" ] }) export class ReportViewerComponent { reportUrl: string = "TestReport"; invokeAction: string = '/DXXRDV'; onBeforeRender(pEvent: any) { pEvent.args.reportPreview.zoom = 0.6; } constructor(@Inject('BASE_URL') public hostUrl: string) { } }

      Please send me the file's complete updated code (not only the if block or the method, but the complete code).
      I will apply it to my project and let you know my results.

      Best regards,
      Boris

        please check

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.