function areEqual(a,b) {
	var same = true;
	$.each(a, function(i, _) {
		if (b[i] === undefined || a[i] !== b[i]) {
			same = false;
			return false;
		}
	});
	return same;
}
Returns the size of the tooltip. When constraints are applied, also returns
whether the tooltip fits in the provided dimensions.
The idea is to see if the new height is small enough and if the content does
not overflow horizontally.

@param {int} width
@param {int} height
@returns {object} An object with a bool `fits` property and a `size` property
@public