Added a support to fit content when FlowLayout is set to match parent.

Signed-off-by: Vivek Khandelwal <vivek.b.khandelwal@gmail.com>