Notes |
|
|
Attached a solution for this issue.
In posterminal added some property to Receipts, BPartner and BPLocations popups.
- Floating set false to prevent duplicated div with the same popup.
- Model set to true that not allow action behind the popup.
Mobile core delete floating to allow center the popup. |
|
|
|
Attached patches
- 32975mobilecore.patch
- 32975posterminal.patch
seems to be not valid.
Now attaching a new patch for mobile core module which should resolve the problem with just one exception:
- If you open a popup and then, having the popup opened the window is resized then the popup will be closed. The user can open it again and continue working.
The scenario explained in that issue is working fine with this fix
patch attached (diffIssue32975_mobilecore.diff) |
|
|
(0093616)
|
hgbot
|
2017-01-16 20:06
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: f64a3739162d6077d00b3f9ae3fa78aa870650f7
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Fri Jan 13 15:09:40 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f64a3739162d6077d00b3f9ae3fa78aa870650f7 [^]
Fixed issue 32975: Popups will continue working even after a resize event
This fix have 2 parts:
1st part: When a popup is redered (included into the DOM) a list of rendered popups is managed. This is done in the render function of OB.UI.Popup component
2nd part: When a resize event happens, we will iterate the list of rendered popups (rendered means that it is part of the DOM, not thet it is being shown). If the popup is being shown we will hide it and we will destroy the DOM element. Destroying it, the render process which is executed after resize will work fine and no duplicates will be created in the DOM
---
M web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
---
|
|
|
(0093678)
|
hgbot
|
2017-01-18 10:25
|
|
|
|
(0093705)
|
hgbot
|
2017-01-18 16:54
|
|
|
|
(0096491)
|
hgbot
|
2017-05-09 16:31
|
|
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: d97e45818055783e547458bc6c5040dfac715f16
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue May 09 16:24:56 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/d97e45818055783e547458bc6c5040dfac715f16 [^]
Fixed isssue 35961: Popups will continue working if a resize event occurs, even if they are opened.
This fix have three parts.
1st: Remove the changes done to fix the issue 32975
2nd: Remove the code which shows a message in case that we detect that popups are broken (Issue
34327)
3th part: Add code to avoid the render process for components which are popup when a resize event occurs:
More details: When a resize event happens, the whole applicattion are rendered, included popups. When popups are re-rendered the ones which exists are destroyed (enyo onjects are destroyed) but the DOM object are not destroyed. The result is a popup which is being shown in the screen but it is being handled by a component which is destroyed.
What we have done is avoid this destroy/render process when a resize event happens. Doing it enyo object is still valid and also the DOM which is now managed by a valid enyo component.
This code, only is executed when resize event is being executed, that's why a flag "OB.resizing" was created to wrap the render process.
---
M web/org.openbravo.mobile.core/build/enyo.js
M web/org.openbravo.mobile.core/enyo/source/dom/Control.js
M web/org.openbravo.mobile.core/source/component/ob-commonbuttons.js
M web/org.openbravo.mobile.core/source/component/ob-terminal-component.js
---
|
|
|
|
|