Fix clipping of horizontal scroll positions
Fix clipping of horizontal scroll positions

To avoid messing up the position of the gutter when an offset
bigger than the max offset is given.

Closes #3781
Closes #3788

sourcelair/CodeMirror,notepadqq/CodeMirror,pabloferz/CodeMirror,codio/CodeMirror,codio/CodeMirror,hackmdio/CodeMirror,schanzer/CodeMirror,mtaran-google/CodeMirror,rrandom/CodeMirror,InternetGuru/CodeMirror,notepadqq/CodeMirror,grzegorzmazur/CodeMirror,vincentwoo/CodeMirror,alur/CodeMirror,ashmind/CodeMirror,bfrohs/CodeMirror,hccampos/CodeMirror,xeronith/CodeMirror,codio/CodeMirror,crazy4chrissi/CodeMirror,bfrohs/CodeMirror,alur/CodeMirror,hackmdio/CodeMirror,ficristo/CodeMirror,schanzer/CodeMirror,sourcelair/CodeMirror,INTELOGIE/CodeMirror,grzegorzmazur/CodeMirror,mtaran-google/CodeMirror,thomasjm/CodeMirror,hccampos/CodeMirror,SidPresse/CodeMirror,mizchi/CodeMirror,ashmind/CodeMirror,InternetGuru/CodeMirror,vincentwoo/CodeMirror,mizchi/CodeMirror,jkaplon/CodeMirror,crazy4chrissi/CodeMirror,dperetti/CodeMirror,TDaglis/CodeMirror,Jisuanke/CodeMirror,Dominator008/CodeMirror,Dominator008/CodeMirror,TDaglis/CodeMirror,dperetti/CodeMirror,namin/CodeMirror,nightwing/CodeMirror,antimatter15/CodeMirror,thomasjm/CodeMirror,kerabromsmu/CodeMirror,kerabromsmu/CodeMirror,hackmdio/CodeMirror,kerabromsmu/CodeMirror,dperetti/CodeMirror,thomasjm/CodeMirror,jayaprabhakar/CodeMirror,antimatter15/CodeMirror,xeronith/CodeMirror,ficristo/CodeMirror,INTELOGIE/CodeMirror,ejgallego/CodeMirror,adobe/CodeMirror2,notepadqq/CodeMirror,schanzer/CodeMirror,xeronith/CodeMirror,crazy4chrissi/CodeMirror,mizchi/CodeMirror,wingify/CodeMirror,pabloferz/CodeMirror,Dominator008/CodeMirror,pabloferz/CodeMirror,jkaplon/CodeMirror,MarcelGerber/CodeMirror,rrandom/CodeMirror,namin/CodeMirror,grzegorzmazur/CodeMirror,InternetGuru/CodeMirror,SidPresse/CodeMirror,MarcelGerber/CodeMirror,mtaran-google/CodeMirror,Jisuanke/CodeMirror,TDaglis/CodeMirror,namin/CodeMirror,jayaprabhakar/CodeMirror,MarcelGerber/CodeMirror,jkaplon/CodeMirror,wingify/CodeMirror,hccampos/CodeMirror,nightwing/CodeMirror,adobe/CodeMirror2,ejgallego/CodeMirror,nightwing/CodeMirror,rrandom/CodeMirror,Jisuanke/CodeMirror,bfrohs/CodeMirror,ficristo/CodeMirror,SidPresse/CodeMirror,sourcelair/CodeMirror,INTELOGIE/CodeMirror,wingify/CodeMirror,antimatter15/CodeMirror,vincentwoo/CodeMirror,ashmind/CodeMirror,jayaprabhakar/CodeMirror,adobe/CodeMirror2,alur/CodeMirror,ejgallego/CodeMirror