Fix error in height calculation in alm/SharedSolver.

This commit is contained in:
Alex Wilson 2012-05-01 13:43:10 +12:00
parent c8b24e3eb5
commit 45f28e068b

View File

@ -75,7 +75,7 @@ struct SharedSolver::PreferredSizeValidator {
ResultType solveResult)
{
float width = layout->Right()->Value() - layout->Left()->Value();
float height = layout->Top()->Value() - layout->Bottom()->Value();
float height = layout->Bottom()->Value() - layout->Top()->Value();
solver->SetPreferredSize(layout, BSize(width, height));
}
};