33dd221b459f491c527675446e9927ad3190d651
This commit fixes some mistakes that were found in the code of the grid layout option. More precisely: - When a column was dropped near a grid dropzone (so not inside it), and if its height was bigger than the grid, the `rowCount` attribute of the row was not updated to the correct number of rows => there was one extra row. - When we start dragging a grid item, if we do not go over the starting grid at all (it happens if the move handle is placed outside of the row), the `rowCount` of the starting grid was never updated. This is because the resize is done at the "out" of the dropzone so if there was no "over", it cannot be done. => As a fix, the starting grid is now always resized when we drop the column. - When dropping a grid item inside a non-grid dropzone, its `z-index` CSS property was not removed. - When a grid item becomes a normal column, when dropping it in a non- grid dropzone or when toggling the normal mode, the resize classes (`g-col-lg-*` and `g-height-*`) were not removed from it. - When a normal column becomes a grid item, the padding and offset classes were not removed and the `col-` class was not systematically synchronized with the `g-col-lg-*` class. => The two previous points need to be fixed because after doing multiple drag and drops, the classes could become inconsistent. This happened especially with columns whose width changes a lot between snippets (like with Masonry columns, because of the padding). - When going back to normal mode, the `--grid-item-padding-*` CSS variables were not removed from the row. - In commit [1], a comment that should have been modified has been forgotten. [1]: https://github.com/odoo/odoo/commit/67d1b078329600efce414974307d74e9fa9ba9fe task-3151207 X-original-commit: 4afd418e1a1d4231369aab08dfa5c2d10ca9a310 Part-of: odoo/odoo#117854
…
…
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%