Enhancement: Resize Broswer event on Menu show and hide

Post Reply
User avatar
Melloware
Posts: 992
Joined: 22 Apr 2013, 15:48

28 Dec 2016, 00:29

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.
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.2.10 / PF Extensions 6.2.9

User avatar
aragorn
Posts: 3465
Joined: 29 Jun 2013, 12:38

06 Jan 2017, 14:14

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.

Post Reply

Return to “Atlantis - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest