Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ patch(FormRenderer.prototype, "web_form_view_resizable", {
handles: "e",
minWidth: window.innerWidth * 0.1,
maxWidth: window.innerWidth * 0.9,
classes: {
"ui-resizable": "remove_flex",
},
// Allow user to drag over the preview of a pdf
start: function () {
// Allow user to drag over the preview of a pdf
$("div.o_attachment_preview").addClass("remove_hover_effect");
// Unset flex-grow once starting to modify the width of div
// but do not remove the class to keep the width modified
$("div.o_form_view_container").addClass("remove_flex");
},
stop: function () {
$("div.o_attachment_preview").removeClass("remove_hover_effect");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Unset flex property otherwise, when clicking on handler,
// the div tries to grow before actually dragging the div
.remove_flex {
flex: unset !important;
flex-grow: unset !important;
}

// Unset pointer-event while dragging otherwise,
Expand Down
Loading