portal layout bug when add new panel with other panel maximized

asked 2014-04-25 19:09:39 +0800

DouglasAM gravatar image DouglasAM
1 1

This happen every time I maximize one panel and try to add a new panel.

You can see on this demo: Business portal

  • Maximize one panel and click on button add, and you will see error message:

Failed to mount: Cannot read property 'indexOf' of undefined

This is a bug ?

delete flag offensive retag edit


by the way the link to see the error ís: http://www.zkoss.org/zkdemo/layout/business_portal?search=business%20portal

DouglasAM ( 2014-04-28 14:26:57 +0800 )edit

When you click add, it will add new panel to the first column, however it is not visible now. There is no way to calculate the size of invisible DOM and add the new panel.

vincentjian ( 2014-04-29 07:43:37 +0800 )edit

Hello vicentjian, thanks for information, this headed me to the right place to try solve this issue, but I can't find a way to when I maximize one panel keep the others panels that stayed down this panel visible and avoid the error to add a new panel. Do you have some suggestion ?

DouglasAM ( 2014-04-29 15:49:25 +0800 )edit

Hi, we've the same problem with Business Portal during a migration from ZKEE 6.5.5 to ZK 7.0.1 . It didn't failed on 6.x versions, I'll try to reproduce the problem and post it here.

cocoes ( 2014-05-07 08:21:18 +0800 )edit

In my case, I was invalidating the parent of one of the panels hidden during another panel maximization, in order to recalculate the hidden panel height before the maximized panel is minimized. Removing the panel.getParent().invalidate() solved my problem.

cocoes ( 2014-05-08 10:31:06 +0800 )edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2014-04-25 19:09:39 +0800

Seen: 7 times

Last updated: Apr 25 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More