[IMP] mail: adjust legacyPatchUiSize docstring
The legacyPatchUiSize function was supposed to be removed when introducing the new environment in discuss. However, it appears it is still necessary for form_renderer tests since it still relies on config.device.size_class. The docstring has been updated accordingly. closes odoo/odoo#92551 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -40,8 +40,9 @@ function getSizeFromWidth(width) {
|
||||
|
||||
/**
|
||||
* Patch legacy objects referring to the ui size. This function must be removed
|
||||
* when switching to the new environment in the discuss app. This will impact
|
||||
* env.browser.innerWidth, env.device.isMobile and config.device.{size_class/isMobile}.
|
||||
* when the wowl env will be available in the form_renderer (currently the form
|
||||
* renderer relies on config). This will impact env.browser.innerWidth,
|
||||
* env.device.isMobile and config.device.{size_class/isMobile}.
|
||||
*
|
||||
* @param {number} size
|
||||
* @param {number} width
|
||||
|
||||
Reference in New Issue
Block a user