[IMP] web calendar: Keep width box while drag or resize
When there are many events at the same moment in a calendar, events are thin and on mouse hover the event take all the width. Before this commit, when we drag or we resize a event in calendar, the event returns to the state thin. After this commit, the width event stay width during resizing and draging. closes odoo/odoo#38384 X-original-commit: 405294602070590083a2b438f631615f72000292 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
@@ -459,10 +459,12 @@ return AbstractRenderer.extend({
|
||||
eventMouseout: function (eventData) {
|
||||
self.$calendar.find(_.str.sprintf('[data-event-id=%s]', eventData.id)).removeClass('o_cw_custom_hover');
|
||||
},
|
||||
eventDragStart: function () {
|
||||
eventDragStart: function (eventData) {
|
||||
self.$calendar.find(_.str.sprintf('[data-event-id=%s]', eventData.id)).addClass('o_cw_custom_hover');
|
||||
self._unselectEvent();
|
||||
},
|
||||
eventResizeStart: function () {
|
||||
eventResizeStart: function (eventData) {
|
||||
self.$calendar.find(_.str.sprintf('[data-event-id=%s]', eventData.id)).addClass('o_cw_custom_hover');
|
||||
self._unselectEvent();
|
||||
},
|
||||
eventLimitClick: function () {
|
||||
|
||||
Reference in New Issue
Block a user