supdegrave / meteor-evm

Event Volunteer Management system, built using meteor.js
2 stars 1 forks source link

Modal bug on "users" page #5

Closed MonkeyDo closed 9 years ago

MonkeyDo commented 10 years ago

When opening a modal on the users page (clicking on a user's name), console returns an error and modal fails:

Uncaught TypeError: Cannot read property 'height' of undefined 

Trace back to modal.js line 479:

fit: function() {
  return (module.cache.height < module.cache.contextHeight);
}
MonkeyDo commented 9 years ago

Modal's internal functions returns undefined when trying to cache size on first initialization. I suspect this is because it's trying to calculate height of an empty element. Currently using a setTimeout to allow for a delay for some content to be injected before calculation.

Ugly, but can't find any way for the modal to wait until content is rendered...