Index: lams_monitoring/web/includes/javascript/monitorLesson.js =================================================================== diff -u -r8714ac689fdad46746bbb7f28005ec080d1d4ba6 -rb27f09530b2db142a5b7119f3b5b213bef7898df --- lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision 8714ac689fdad46746bbb7f28005ec080d1d4ba6) +++ lams_monitoring/web/includes/javascript/monitorLesson.js (.../monitorLesson.js) (revision b27f09530b2db142a5b7119f3b5b213bef7898df) @@ -1503,13 +1503,13 @@ } var path = $('path', group).attr('d'), // extract width and height from path M,hv... or M h v ... - match = /h\s?(\d+)\s?v\s?(\d+)/.exec(path); + match = /M\s?(\d+)\s?,?\s?(\d+)\s?h\s?(\d+)\s?v\s?(\d+)/.exec(path); if (match) { return { - 'x' : activity.x, - 'y' : activity.y + 1, - 'x2' : activity.x + +match[1], - 'y2' : activity.y + +match[2] + 'x' : +match[1], + 'y' : +match[2] + 1, + 'x2' : +match[1] + +match[3], + 'y2' : +match[2] + +match[4] } } }