Come for answers. Stay for best practices. All we’re missing is you.
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
Hi,
The results pane is resized when the search criterias are hidden. What is your version of ICN?
Regards,
Angie
my ICN version is 3.0.5
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(); } }
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?
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
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.