I am modifying my program to react dynamically to window resizes, and also to make widget sizing more robust.
I have a handler for window resize events; this calls a method in each of my main panels to resize all widgets accordingly.
Everything is styled through CSS, mostly using percentages to keep things robust. How do I re-apply these CSS rules dynamically?
For example, say the browser is resized from 1920x1080 to 1280x768. Obviously 50% of 1920 is different than 50% of 1280, so I need to re-apply the rules. I cannot find methods to do so.