Frame mode now adapts to the current layout.