commit 700340fef30f72662d85b7af0731bdfde5ac8e3e
Author: Robert Lyon <email address hidden>
Date: Fri Oct 17 09:12:52 2014 +1300
Finding the dimensions of hidden textareas (Bug #1382159)
If the parents of a textarea are also hidden it returns height/width
as 0, which is no use to us. So we need to find it's height/width when
not hidden.
So added some code to:
- to clone the textarea
- make it positioned way outside the viewport
- append it to body
- find height/width
- remove the clone from body
- return the height/width
Change-Id: Ib2fa2d80b3046909ed2763545410d5d95f464b4d
Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/3821 gitorious. org/mahara/ mahara/ commit/ 700340fef30f726 62d85b7af0731bd fde5ac8e3e
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: master
commit 700340fef30f726 62d85b7af0731bd fde5ac8e3e
Author: Robert Lyon <email address hidden>
Date: Fri Oct 17 09:12:52 2014 +1300
Finding the dimensions of hidden textareas (Bug #1382159)
If the parents of a textarea are also hidden it returns height/width
as 0, which is no use to us. So we need to find it's height/width when
not hidden.
So added some code to:
- to clone the textarea
- make it positioned way outside the viewport
- append it to body
- find height/width
- remove the clone from body
- return the height/width
Change-Id: Ib2fa2d80b30469 09ed2763545410d 5d95f464b4d
Signed-off-by: Robert Lyon <email address hidden>