We spent a bit of time finding out why using vh to determine height in legacy modules did not work properly. So just wanted to share with the rest of the development community. And invite Suite to see if they want to solve this…
So, the issue was that with any action that resulted in changing the CSS dynamically, the screen height just got bigger. This happened with a Legacy module. We tracked this down to the fact that the frames were constantly checked for potential resizing and… a formula just added some extra pixels (50) unnecessarily each time.
So the issue is in public\dist\dist_core_fesm2022_core_mjs-_4dac1.f864533fa242990d.js specifically in " addBodyResizeListener", “getHeight”: return n > 0 ? n : s.element.scrollHeight + 50
So… we assume that this is used to adjust Angular rendered modules, but we think that these 50 px should not be added for Legacy.
Workaround: you can use the media settings in CSS as SuiteCRM does, or something more simpler.
If Suite confirms our suspicion, maybe they can put some check on Legacy rendering ? (possibly based on module_routing-yaml settings ?
Cheers,