|
|
@@ -1025,7 +1025,8 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- npt.scrollLeft = ($(npt).css("font-size").replace("px", "") * end) > npt.scrollWidth ? npt.scrollWidth : 0;
|
|
|
+ var scrollCalc = $(npt).css("font-size").replace("px", "") * end;
|
|
|
+ npt.scrollLeft = scrollCalc > npt.scrollWidth ? scrollCalc : 0;
|
|
|
if (opts.insertMode == false && begin == end) end++; //set visualization for insert/overwrite mode
|
|
|
if (npt.setSelectionRange) {
|
|
|
npt.selectionStart = begin;
|