Layout might be None (from cursor or from block)