My only confusion is why the hell you post this in our Bugs section, as if it's some ROM issue.
You messed up, it's factory reset time.
You can also try setting the correct wm size during boot time, if ADB is available by that time and you're fast enough.
Good luck. Moved to Q&A.