Fix compendium browser sometimes spawning behind other windows

This commit is contained in:
Carlos Fernandez 2026-05-15 00:22:42 -04:00
parent 829a6161ff
commit 90a165cdba

View file

@ -109,8 +109,8 @@ export class ItemBrowser extends HandlebarsApplicationMixin(ApplicationV2) {
CONFIG.DH.id,
CONFIG.DH.FLAGS[`${this.compendiumBrowserTypeKey}`].position
);
options.position = userPresetPosition ?? ItemBrowser.DEFAULT_OPTIONS.position;
delete options.position.zIndex;
if (!userPresetPosition) {
const width = noFolder === true || lite === true ? 600 : 850;