diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-09-29 16:26:30 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-09-29 16:32:22 +0000 |
| commit | bb77cd2961e71deaf048cbaad20f8cb72a646cab (patch) | |
| tree | b2dd51f42b14538a4cd7e2d45fb9ab4f031c850c /addons/web_editor/static/src | |
| parent | 328a3459971ab18dd8b1b654eec57311034dec17 (diff) | |
[FIX] website: update main padding top before making the header affixed
When the header goes affixed, a compensating padding-top is added on
the content so that the scroll does not flicker. That padding-top was
added a bit too late and was enough to mess up the scroll on pages where
the content is about the height of the viewport: the header goes affix,
the scrollable content becomes smaller, the padding top is added, a
scroll is detected, the header is un-affixed since above scroll point
-> bug. If the padding top is added first, then there is no problem.
Note: the scroll effects code could probably use some refactoring.
Part of https://github.com/odoo/odoo/pull/56936
task-2312878
closes odoo/odoo#56936
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
