You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
@sten The last version of the online users gadget (merged 2 days ago) seems to work better with resizing.
For the time spent gadget, I have the issue only with Firefox. I'll try to fix it with the enhancement I'm currently working on: #250
@sten After some more tests, it looks like the last version of the online users gadget doesn't always resize well. Although sometimes it does, which doesn't help much to determine if it is fixed or not. I'll have a look.
From my personal experience with the notorious adjustHeight function, it is important not too call it too early and often. It is an expensive operation that involves RPC. So try to call it once you are sure about the size of the gadget and do not connect in on load on any resize event. maybe this helps.
Thanks for the tips. A first solution that seems to work is simply wait for 5 seconds before calling adjustHeight. I suppose there can be a better solution. I'll try to find the best place to call it.
The following learning analytics widgets do not properly resize to their requested height:
http://www.golabz.eu/apps/student-time-spent
http://www.golabz.eu/apps/online-users-visualisation
I have tried it on Safari, Chrome and Firefox (Mac). @davidsandoz can you fix this?
The text was updated successfully, but these errors were encountered: