commit 447a16280b4a94972d1b79f4dcd1394e6b6201fd
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/3823 gitorious. org/mahara/ mahara/ commit/ 447a16280b4a949 72d1b79f4dcd139 4e6b6201fd
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: 1.10_STABLE
commit 447a16280b4a949 72d1b79f4dcd139 4e6b6201fd
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>