- /* Try to keep the widget as close to the center of the container
- as possible. Since linear programs can't express absolute values
- directly, use two opposing slack variables that are optimized for
- a low value. */
+ /* Try to keep the widget as close to a target position as possible.
+ Since linear programs can't express absolute values directly, use two
+ opposing slack variables that are optimized for a low value. */
+ float a = ((*i)->*(ptrs.packing)).gravity*0.5+0.5;