Fix the scroll when the snippet is the dynamic one because it did not work as we tried to get the offset of an element with the d-none class. Remove the scrollValue variable because we don't need it anymore. It was used before the code was reviewed in a previous commit. task-2312878 closes odoo/odoo#58486 closes odoo/odoo#58530 X-original-commit: e6d32bc4bfa7f0c3c2f82c2eb99a562c1cb93d83 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>