After developping a simple packing algorithm, I’ll explain here what it was needed for. The constraining test sample provided by wordress made me go for this, although it probably won’t prove that usefull in practical cases, but who knows ?
Getting on with more serious stuff this time. I’m going to pack boxes with 2 possible heights, still aiming at minimum overlapping, better yet not any at all to achieve a neat alignment.
Packing boxes in a given container is a problem which can be solved in numorous manners, depending on complexity and the optimization you’re aiming at. I’ll focus on a very simple layout, with an extra constraining requirement being as little overlapping as possible.
As I was developing the admin part of the theme, I got the idea to customize the checkboxes to give them a nice appearance, simply using some basic jQuery. This is how I got it done.