[FIX] compute the correct offset to adjust view
authorGéry Debongnie <ged@odoo.com>
Fri, 30 May 2014 13:10:18 +0000 (15:10 +0200)
committerGéry Debongnie <ged@odoo.com>
Fri, 30 May 2014 13:10:18 +0000 (15:10 +0200)
commitc522fe6addaaaaf39ae60b6794724a60f9bd24c5
treebf7634ca4056809c559a8052c71c3b1dfdc18125
parent3bfdcfd443791fbc0448749f68d67e78f31e0d44
[FIX] compute the correct offset to adjust view

the jquery method length() compute the height of its element, even if
it is diplay:none.  But in our case, we want the offset to be zero if
there is no visible view_manager_header.  (for example, general settings
in settings menu)
addons/web/static/src/js/search.js