Fixes for scrolling and aligning elements on panels and popups