PR #2979: Fixes #2977 Resize overview fields in RTL language

This commit is contained in:
Mantas Masalskis 2020-04-01 16:22:53 +02:00
parent 9b191a5541
commit 2843a92de0

View file

@ -934,7 +934,10 @@ class App.ControllerTable extends App.Controller
onColResizeMousemove: (event) =>
# use pixels while moving for max precision
difference = event.pageX - @resizeStartX
if App.i18n.dir() is 'rtl'
difference = @resizeStartX - event.pageX
else
difference = event.pageX - @resizeStartX
if @resizeLeftStartWidth + difference < @minColWidth
difference = - (@resizeLeftStartWidth - @minColWidth)