implemented InlineLayout