Page 1 of 1

Enhancement: Resize Broswer event on Menu show and hide

Posted: 28 Dec 2016, 00:29
by Melloware
Say you have the following:

1. Atlantis Menu set to Inline.

2. Primefaces Scrollable Datatable with scrollable="true" and scrollWidth="100%"

When you close and open the Atlantis menu the table does not draw properly. Maybe the <pa:tabMenu" needs Javascript call back events like onopen="" and onclose="" so we can hook Javascript events up to the menu moving.

Then I could call..

Code: Select all

$(window).trigger('resize');
To force a resize of the window and have the PF Datatable resize itself properly.

Re: Enhancement: Resize Broswer event on Menu show and hide

Posted: 06 Jan 2017, 14:14
by mert.sincan
I think you can change layout.js. For now, We don't think to add events into tabMenus. Also, layout.js has $(window).trigger('resize'); for menu-button and links in the tabMenuNav. Please check them.