Now uses jQuery to compute the position of the help box. Combining
.position() and .offset() means that relatively positioned elements
in the help box's ancestry don't affect its final position.
For very small screens, the help box now resizes to fit the screen.
For larger screens it's capped at 500px (rather than using percentage
widths as before) to avoid the width being dependent on parent
elements.
Change-Id: Ib65b9795ac25789d653fd20cbe2b2cd46d2d8c75
Signed-off-by: Jono Mingard <email address hidden>
Reviewed: https:/ /reviews. mahara. org/2948 gitorious. org/mahara/ mahara/ commit/ 99109004a8492c5 e8314b3d43c712a 4e20679aa5
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 99109004a8492c5 e8314b3d43c712a 4e20679aa5
Author: Jono Mingard <email address hidden>
Date: Wed Jan 22 12:24:54 2014 +1300
Fixed help message positioning (Bug #1259394)
Now uses jQuery to compute the position of the help box. Combining
.position() and .offset() means that relatively positioned elements
in the help box's ancestry don't affect its final position.
For very small screens, the help box now resizes to fit the screen.
For larger screens it's capped at 500px (rather than using percentage
widths as before) to avoid the width being dependent on parent
elements.
Change-Id: Ib65b9795ac2578 9d653fd20cbe2b2 cd46d2d8c75
Signed-off-by: Jono Mingard <email address hidden>