Sigh… Maybe I just need to give up with this one bug and let it be. I can't get it fixed by spending hours for a possible solution that can fuck up the layout in various ways. The whole app may be rewritten from scratch soon-ish, which also means that all the use flows are likely to get rethought through. That should "fix" the issue for good.