Better identify scrollPos

This commit is contained in:
Garvin Hicking 2009-07-14 10:14:46 +00:00
parent f168a7578d
commit ec510b8abe
2 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ function IEWrap(txtarea, lft, rgt) {
} }
function wrapSelection(txtarea, lft, rgt) { function wrapSelection(txtarea, lft, rgt) {
scrollPos = false;
if (txtarea.scrollTop) { if (txtarea.scrollTop) {
scrollPos = txtarea.scrollTop; scrollPos = txtarea.scrollTop;
} }

View File

@ -58,6 +58,7 @@ function IEWrap(txtarea, lft, rgt) {
} }
function wrapSelection(txtarea, lft, rgt) { function wrapSelection(txtarea, lft, rgt) {
scrollPos = false;
if (txtarea.scrollTop) { if (txtarea.scrollTop) {
scrollPos = txtarea.scrollTop; scrollPos = txtarea.scrollTop;
} }