Fix checkbox allocation

The checkbox wasn't displaying correctly unless the size was set manually or it was set to expand horizontally. This fixes it so that it requests the correct size and gives the correct allocations.