-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desktop.js -> setDesktopSize() bug #107
Comments
I found some more informations about this bug. Here is my init script, if it can help. MUI.create({ 'control':'MUI.Desktop', 'id':'desktop', 'taskbar':true, 'content':[ {name:'header', url: admin_url + 'desktop/get_header'}, {name:'taskbar'}, {name:'content',columns:[ {id: 'sideColumn', placement: 'left', width: 280, resizeLimit: [222, 600], panels:[ { id: 'structurePanel', title: '', content: [ {url: admin_url + 'core/get_structure'}, { name: 'toolbox', position: 'header', cssClass: 'left', divider: false, url: admin_url + 'desktop/get/toolboxes/structure_toolbox' } ] } ] }, {id: 'mainColumn', placement: 'main', resizeLimit: [100, 300], panels:[ { id: 'mainPanel', title: Lang.get('ionize_title_welcome'), content: [ {url: admin_url + 'dashboard'}, { name: 'toolbox', position: 'header', url: admin_url + 'desktop/get/toolboxes/empty_toolbox' } ] }] } ]} ] }); |
Found more info about this problem. A deeper check indicates that panelWrapper.getAllPrevious('.panelWrapper') returns 2 objects for the structurePanel_wrapper :
A check of the Panel initialize returns that the Panel object was just called 2 times, one time for the panel "structurePanel" and one time for the panel "mainPanel". |
I think this was caused by drag event not being caputured during collapse/expand. This has been fixed. Please verify you are still having problem with newest code. |
For internal use, I need to call the setDesktopSize() method of desktop.js (because I dynamically hide the desktop header, and the desktop size need to be recalculated after hidding the desktop header.)
Using the previous version, I just fired the window resize() event (this also doesn't work).
The error comes from the method panelHeight2()
I added a plaster, but I'm not convinced :
The text was updated successfully, but these errors were encountered: