summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorKhoi Nguyen <bng@odoo.com>2017-08-11 10:55:54 +0200
committerKhoi Nguyen <bng@odoo.com>2017-08-14 11:42:12 +0200
commit7978f846d17282e6246a72dbe8bb1a5e78cadae6 (patch)
treef1b8632a2cedc76dba7d2b825486325ff1cf593d /addons/web/static/src/js/views/basic/basic_model.js
parent1e65cd3d4e7ce88004cf0f4d3b537b5a0ff3348b (diff)
[FIX] web: correct first render of calendar when changing the date
As mentioned in https://github.com/odoo/odoo/commit/a752e7d1458b1d689a028fcf89b582ae74333d49, a resize after the first render is necessary to prevent overflow issues with fullCalendar. As changing the date would rerender the calendar, we also need to trigger a resize then. From this revision onwards, a resize event is triggered every time the calendar has finished rendering its events. Unfortunately, I was not able to write a meaningful and successful test (I encountered PhantomJS-specific issues). I also removed the test for https://github.com/odoo/odoo/commit/a752e7d1458b1d689a028fcf89b582ae74333d49 because it always passed regardless of whether the fix is applied.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions