Opening side panel invalidates styles causing delay

I have in issue where opening a side panel invalidates the styles on the main view, meaning that it has to recalculate the styles. It does so several times, with a delay of around 500ms each time (the main page has complex styles applied). If the main view is something simple without complicated styles, the problem is barely noticable. I wonder if there is any way to prevent this problem from occuring? I can’t see why opening the side panel should invalidate the styles of the main view. I’m using the latest version of Framework7 with Vue.