Improper Panel Rendering

Im working on a Firefox Addon(duh) which has a panel. Sometimes, on Mac (OS X El Capitan), the popup panel isnt rendered completely. Like only the top left quarter of the panel is displayed while the rest remains white. But if I open the panel again it displays fine. This issue hasnt occured on Linux or Windows so far. Any ideas what might be happening?

Can you share some screenshots please

How are you creating the panel? Is this using WebExtensions, SDK, something else?

Im using the SDK

Is your code available somewhere to inspect?