Bug 876562. Fix scrollport size calculation that didn't make a lot of sense. r=kats a=akeybl

It was taking the min over two values that weren't in the same unit (the first in CSS pixels, the second in dev pixels).