b9551a5070f16ba7b1f810283350d3827795dbbb
How to reproduce: - create a list embedded view in Knowledge (/item list) - in the control panel click on "Filters" Current behavior: - the dropdown is not correctly positioned Expected behavior: - the dropdown should be positioned around the button Fix: `getBestPosition` uses dimensions and layout positionning based on the viewport, but `reposition` modifies the style properties `top` and `left` of the element, which are relative to the closest containing block. Since in that case the style position is `fixed`, there are a number of factor that can influence the containing block, as specified in: https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block We can easily compute the layout offset caused by the containing block just after resetting the popper top and left to `0px` and take it into account for the final value. Task-3267555 closes odoo/odoo#118018 Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%