Comment 4 for bug 1382159

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3823
Committed: http://gitorious.org/mahara/mahara/commit/447a16280b4a94972d1b79f4dcd1394e6b6201fd
Submitter: Aaron Wells (<email address hidden>)
Branch: 1.10_STABLE

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>