Master page - top margin as 0 still provides some empty space in the top

When setting master page top margin as 0, it produces some empty space in the top of  report in the web viewer. But when exported to pdf, there are no empty spaces.


 


Any inputs to avoid the empty spaces in the top of report in the web viewer, would be great.


Comments

  • mblockmblock Expert Member

    This is due to the fact that we need to keep a margin for interactive Viewer. To get rid of this you need to set the following on the viewer object



    viewer.setContentMargin(0);

    If you want to do this in the report use onContentUpdate method.


    Regards,

    Mica J. Block

    Principal Analytics Architect

    OpenText Corporation

  • Added the following the lines of code in the report design onContentUpdate section and getting the space between the toolbar and the report.


     


    this.getViewer().setContentMargin(0);


     


    Attaching the image for your reference. If sample can be shared, it would be great


  • mblockmblock Expert Member

    Apologies for the delay as I am extremely busy these days. What version are you using? If I recall we ignore the setContent with out viewer as we need to reserve that space for the IV menu. This does work for me when I am embedding using JSAPI. It might be possible to customize a style in one of the standard css files to get rid of this as well (I am not sure). Even if this is possible it is not really supported. 


    If this is urgent I would suggest contacting support. 


    Regards,

    Mica J. Block

    Principal Analytics Architect

    OpenText Corporation

  • when the report is viewed from the iportal, its still showing the blank spaces.  How to avoid this when viewing the report from the iportal.


     


    Version-4.6


  • edited September 11

    You can add the following JavaScript (jQuery) code in the onContentUpdate event:



    $("div.floatPanel").children(0).css("margin-top", 0);

    Please note that by removing the white space, you can be potentially hide the Interactive Viewer popup icon/functions above the column headings.


    Clement Wong
    Principal Analytics Architect

    OpenText Corporation
    http://www.actuate.com | http://www.opentext.com

  • mblockmblock Expert Member

    Thanks Clement!


    Regards,

    Mica J. Block

    Principal Analytics Architect

    OpenText Corporation

Sign In or Register to comment.