Fixes the issue of flyouts not working with the CleanWindow style

Fixes #835