Automatically calculate the weight of a nifty draggable bar