jsPanel4 icon indicating copy to clipboard operation
jsPanel4 copied to clipboard

always-on-top modeless panel

Open alpastar opened this issue 7 months ago • 1 comments

[feature request]

z-index of modeless panel starts with 100 z-index of modal panel starts with 10000

what i want is always-on-top modeless panel that is on top of modal panel

if there is many always-on-top modeless panel they should behave like normal modeless panel (ex focusing)

i really appreciate your effort and jsPanel ...

alpastar avatar May 16 '25 12:05 alpastar

Now that's a quite unusual usecase and I suggest you set the z-index yourself. For example like ...

jsPanel.create({
  callback: function () {
    this.style.zIndex = 12300;
  },
  onfronted: function(panel, status) {
        panel.style.zIndex = 12300;
    }
});

This example uses the regular callback to set an individual z-index. But since the panel would return to the z-index values set via the jsPanel script you have to set the z-index again whenever something is done with the panel. You most probably have to adjust this to your needs.

Flyer53 avatar May 18 '25 18:05 Flyer53