Project was created as a showcase for this Stack Overflow question.
The problematic flickering can be seen in this video
Notice how red panel show/hide visibility is out of sync from keybaord show/hide visibility for a slit second when changing the layout.