Great job, but this wasn't an issue in my original code. In my original code, I was looking for the highest element and even left out the side elements (left/top/right/bottom) if the sum of corner elements was larger, clipping them as well to get the right size.
I feel like the current implementation makes me look bad, because you guys are fixing so much stuff related to my work. A lot of the fixes was already taken care of in my original implementation, that Prissi rewrote almost completely.
For some reason Prissi thought this was't necessarily code and removed it. Maybe if you have a look at my original source, a lot of work can be saved by just reimplementing it.
I will again state that the current implementation is mostly Prissi's rework of my code. Most of it was rewritten to Prissi's liking and broke a lot of functionalities. I was just to tired of bother since it felt pointless to put any efforts into the project.
I also included a new theme and modified the current default themes, with source included, to show how it worked, but that was never included in the trunk. Instead Prissi reworked his current themes to fit his implementation.