[IMP] work on scrollable zone in web client
add a div parent to oe_view_manager_body, and move the searchview drawer inside oe_view_manager_body. This is in preparation to the goal of making the oe_view_manager_body div scrollable
This commit is contained in:
@@ -647,7 +647,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
||||
_.each(_.keys(self.views), function(view_name) {
|
||||
var controller = self.views[view_name].controller;
|
||||
if (controller) {
|
||||
var container = self.$el.find("> .oe_view_manager_body > .oe_view_manager_view_" + view_name);
|
||||
var container = self.$el.find("> .oe_view_manager_parent > .oe_view_manager_body > .oe_view_manager_view_" + view_name);
|
||||
if (view_name === view_type) {
|
||||
container.show();
|
||||
controller.do_show(view_options || {});
|
||||
@@ -690,7 +690,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
||||
controller.on('switch_mode', self, this.switch_mode);
|
||||
controller.on('previous_view', self, this.prev_view);
|
||||
|
||||
var container = this.$el.find("> .oe_view_manager_body > .oe_view_manager_view_" + view_type);
|
||||
var container = this.$el.find("> .oe_view_manager_parent > .oe_view_manager_body > .oe_view_manager_view_" + view_type);
|
||||
var view_promise = controller.appendTo(container);
|
||||
this.views[view_type].controller = controller;
|
||||
this.views[view_type].deferred.resolve(view_type);
|
||||
|
||||
@@ -520,12 +520,13 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="oe_searchview_drawer_container"/>
|
||||
|
||||
<div class="oe_view_manager_parent">
|
||||
<div class="oe_view_manager_body">
|
||||
<t t-foreach="widget.views_src" t-as="view">
|
||||
<div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
|
||||
</t>
|
||||
<div class="oe_searchview_drawer_container"/>
|
||||
<t t-foreach="widget.views_src" t-as="view">
|
||||
<div t-attf-class="oe_view_manager_view_#{view.view_type}"/>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user