diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2018-03-21 14:20:01 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-04-03 15:19:42 +0200 |
| commit | 166319fa4a31c0105d786c1e8b8d0228ff45bd14 (patch) | |
| tree | ae8f558ecd16aaecb32e44336619d2fbda9b8bdf /addons/web/static/src/js/core | |
| parent | 8e017ee296d955713f86f1395d00a7d9d9e59985 (diff) | |
[IMP] web: GraphView: remove hack to render in DOM
The graph view uses the nv(d3) lib to render the graph. This lib
requires that the rendering is done directly into the DOM (so that
it can correctly compute positions). However, the views are always
rendered in fragments, and appended to the DOM once ready (to
prevent them from flickering).
Before this rev., the graph view circumvented this by performing
the rendering in a setTimeout(0), letting the framework append the
widget to the DOM first.
This rev. removes this hack and uses the on_attach_callback hook
instead, which is called when the widget is attached to the DOM.
This ensures that the rendering is always done in the DOM, and we
keep the rendering part synchronous.
Diffstat (limited to 'addons/web/static/src/js/core')
0 files changed, 0 insertions, 0 deletions
