Menu

#524 Resizing a booking sometimes doesn't work in Chrome

Future_Requests
open
nobody
None
1
2022-05-22
2022-05-22
No

If you have a booking which occupies the bottom right slot of the day or week views and you try and drag the top edge upwards, the display will just keep displaying the message "Saving …" and the change will not be saved.

This only happens in Chrome based browsers, eg Chrome and Edge. It does not happen in Firefox.

The problem occurs because the JavaScript is passing a null value for the room in the Ajax request. The value is null because the JavaScript cannot match the resized cell with the values in the header row of the table. That's because .offset() seems to be reporting strange values that are about 10px out from the actual values.

Discussion

  • Campbell Morrison

    Although it doesn't fix the bug, I've improved the error handling in 846fd6c so that instead of getting stuck on "Saving …" the JavaScript now reports an error.

     
  • Campbell Morrison

    Note that the bug only occurs when there is no vertical scroll bar on the table.