LPS-39032 Take virtual layouts into account as well