[IMP] pad: add mobile support for pad widget

In mobile devices, the pad widget did not behave in a satisfactory
manner.  Also, once it was in fullscreen mode, it was not possible to
come back to normal mode.

Task: #31545
PR: #15817
This commit is contained in:
Viral Thakar
2018-05-11 14:36:57 +02:00
committed by Géry Debongnie
parent 7ee2bfce9f
commit d1c731e88c
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -21,6 +21,16 @@
font-size: 14px;
}
@media (max-width: 767px) {
.oe_pad_switch {
left: auto;
right: 5px;
}
html .o_scroll_hidden {
overflow: hidden;
}
}
.oe_pad_switch:hover{
background-image: -webkit-linear-gradient(top, #f4f4f4, #e4e4e4);
}
+1
View File
@@ -178,6 +178,7 @@ var FieldPad = AbstractField.extend({
_onToggleFullScreen: function () {
this.$el.toggleClass('oe_pad_fullscreen mb0');
this.$('.oe_pad_switch').toggleClass('fa-expand fa-compress');
this.$el.parents('.o_touch_device').toggleClass('o_scroll_hidden');
},
});