made public method private
tests for layout in measure