persiankamran
11-07-2008, 05:27 AM
folks i posted a similar kind of question earlier but here is the changed question.
Let say i have one mainApplication container and in that container i have one UIComponent and then 2 text Areas in the UIComponent.
I have disabled the scroll policy of both the textAreas. What i want is that when the text height in any textarea changes, i should be able to check whether the changed height is greater than currentHeight and if yes.. it should put the scroll on the mainApplication.. so that mainApplication is controlling the scroll for both the textAreas.
For that i added a "change" event to the textArea1 and then called a function..
But i dont know how can i compare the changed height versus the current Height because i have given the currentHeight as 100%.. and then how to put the scrolling on the mainApplication container
Can any one help??
Let say i have one mainApplication container and in that container i have one UIComponent and then 2 text Areas in the UIComponent.
I have disabled the scroll policy of both the textAreas. What i want is that when the text height in any textarea changes, i should be able to check whether the changed height is greater than currentHeight and if yes.. it should put the scroll on the mainApplication.. so that mainApplication is controlling the scroll for both the textAreas.
For that i added a "change" event to the textArea1 and then called a function..
But i dont know how can i compare the changed height versus the current Height because i have given the currentHeight as 100%.. and then how to put the scrolling on the mainApplication container
Can any one help??