Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Navigator resultspane does not automatically resize to the page height

    Posted Sun November 29, 2020 08:55 AM

    How can I resize ResultsPane to the page height? If I hide a SearchPane I want my resultspane to autoresize and fit the whole page height. I am using a custom plugin and I want to know how to do this programmatically in my Dojo



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Navigator resultspane does not automatically resize to the page height

    Posted Mon November 30, 2020 10:15 AM

    Hi,

    The results pane is resized when the search criterias are hidden. What is your version of ICN?

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: Navigator resultspane does not automatically resize to the page height

    Posted Mon November 30, 2020 10:21 AM


  • 4.  RE: Navigator resultspane does not automatically resize to the page height

    Posted Mon November 30, 2020 10:25 AM

    I am using this code in my dojo, but it doesn`t work:

    resize: function() { if (this.container) { this.container.resize(); } var titleStyle = domStyle.getComputedStyle(this.resultsPane.titleBarNode); var titleSizes = domGeom.getMarginBox(this.resultsPane.titleBarNode, titleStyle); var resultsStyle = domStyle.getComputedStyle(this.resultsPane.domNode); var resultsSizes = domGeom.getMarginBox(this.resultsPane.domNode, resultsStyle); var height = resultsSizes.h - titleSizes.h - 18 ; if (height < 0) { height = 0 ; } var node = dojo.byId(this.id + "_results"); domStyle.set(node, "height", height + "px"); var widget = this.getWidgetById("results"); if (widget) { widget.resize(); } }



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: Navigator resultspane does not automatically resize to the page height

    Posted Mon November 30, 2020 10:58 AM

    Hi,

    I don't have ICN 3.0.5 server but tried ICN 3.0.4 and the height of results pane is resized correctly. Can you elaborate more on the request? Are you saying that you want the grid height to be the total height of the rows, so that the scroll bar of the grid is gone and instead show another vertical scroll bar to the right of the window?

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 6.  RE: Navigator resultspane does not automatically resize to the page height

    Posted Mon November 30, 2020 04:49 PM

    Hi Angie,

    Thank you for your reply. The fact is that I am using a custom plugin. Now everything works for me using the code above, apparently there was a problem with the browser cache.

    Best regards, Timur



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 7.  RE: Navigator resultspane does not automatically resize to the page height

    Posted Tue December 01, 2020 03:04 AM

    Hi,

    It seems you are using your own web page for search. We cannot help much on custom code. You may refer to ecm.widget.search._SearchPaneContainer.resize() function to see how ICN resizes the search results and criteria.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration