[3.8] Fix #1314 : Fix editing modal resize