diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-10-28 14:26:08 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-10-28 14:26:08 +0200 |
| commit | 04b619f7bb8339259b7d17b9ec90a71669f67c61 (patch) | |
| tree | 03b20f816c646fe94bd9badb588e147f254fdd45 /addons/web/static/lib/jquery.scrollTo/jquery.scrollTo.js | |
| parent | 32c21e1ac0f173b6dfb981d0e64a8d77267caa55 (diff) | |
[FIX] incorrect rendering of hidden graphs
dhtmlx is apparently entirely unable to render invisible graphs
(hidden via display:none on itself or a parent, visibility: hidden
does not trouble it), it apparently uses the actual size of the graph
container in its rendering and display:none elements have no
dimensions.
A graph in an o2m in a secondary tab gets rendered in display:none
environment yielding a completely broken and unusable graph.
Worked around this by deferring the graph's rendering until
visibility: the actual graph rendering is stored in a function which
is periodically deferred (via setTimeout) until we know the graph view
is visible (meaning its root element isn't invisible
anymore). Ideally, we'd use a library which is not broken instead...
The check periodicity is currently set to 100ms, seems sufficiently
reactive for our purposes.
lp bug: https://launchpad.net/bugs/880789 fixed
bzr revid: xmo@openerp.com-20111028122608-6hyi7lqpr3jh9rw3
Diffstat (limited to 'addons/web/static/lib/jquery.scrollTo/jquery.scrollTo.js')
0 files changed, 0 insertions, 0 deletions
