Fixed rounding error in button layout algorithm.
Fixed popup sizing issue with multiple monitors.