mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
better support for other browsers
This commit is contained in:
parent
7e023ce8e1
commit
51a9ecf1f0
1 changed files with 2 additions and 3 deletions
|
@ -1626,15 +1626,14 @@ function Ace2Inner(){
|
||||||
|
|
||||||
if (linesWrapped > 0)
|
if (linesWrapped > 0)
|
||||||
{
|
{
|
||||||
if(browser.chrome){
|
if(!browser.ie){
|
||||||
// chrome decides in it's infinite wisdom that its okay to put the browsers visisble window in the middle of the span
|
// chrome decides in it's infinite wisdom that its okay to put the browsers visisble window in the middle of the span
|
||||||
// an outcome of this is that the first chars of the string are no longer visible to the user.. Yay chrome..
|
// an outcome of this is that the first chars of the string are no longer visible to the user.. Yay chrome..
|
||||||
// Move the browsers visible area to the left hand side of the span
|
// Move the browsers visible area to the left hand side of the span
|
||||||
|
// Firefox isn't quite so bad, but it's still pretty quirky.
|
||||||
var scrollToTheLeftNeeded = true;
|
var scrollToTheLeftNeeded = true;
|
||||||
}
|
}
|
||||||
// console.log("Editor warning: " + linesWrapped + " long line" + (linesWrapped == 1 ? " was" : "s were") + " hard-wrapped into " + ccData.numLinesAfter + " lines.");
|
// console.log("Editor warning: " + linesWrapped + " long line" + (linesWrapped == 1 ? " was" : "s were") + " hard-wrapped into " + ccData.numLinesAfter + " lines.");
|
||||||
}else{
|
|
||||||
var scrollToTheLeftNeeded = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ss[0] >= 0) selStart = [ss[0] + a + netNumLinesChangeSoFar, ss[1]];
|
if (ss[0] >= 0) selStart = [ss[0] + a + netNumLinesChangeSoFar, ss[1]];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue