Fix fitHeight and fitWidth handling when using single dimension primitive masks like MCViewPositionBottom, MCViewPositionTop, MCViewPositionLeft and MCViewPositionRight

Signed-off-by: Marc Lefrançois <mlefrancois@mirego.com>