Added getSize() to FlexibleLayout

Unlike for example SequentialLayout, FlexibleLayout did not have a getSize() method. This causes trouble when using a FlexibleLayout in a Scrollview or another FlexibleLayout.