Respect layout pref when raising an open file