Windows don't use z-index when they gain focus?

Hi,

If you look at the standard window samples, these two for example:

https://docs.webix.com/samples/10_window/01_init.html
https://docs.webix.com/samples/10_window/09_icons.html

I notice that when you click a window, it doesn’t come to the foreground. In other words, it doesn’t jump on top of the other windows. In yet other words, the z-index doesn’t change when a window gets focus. This is of course not proper behavior if you’re trying to use windows as “proper” windows like in Windows or Gnome or whatever GUI you like, which is exactly what I’m trying to do :slight_smile:

My question is whether there’s a way to make them behave this way? I don’t see a config prop that seems to apply. I’m willing to bet it wouldn’t be tough for me to add some sort of event handler and somehow manipulate the z-index myself, but it’s such a fundamental thing that it seems like either it’s a gap that I’d REALLY love to see filled in the next release, or more likely: I’m missing something obvious :slight_smile:

Thanks,
Frank

As a follow-up, the windows DO seem to do what I’d expect them to when you MOVE them. I just think they should be coming to the foreground just when they gain focus, not require a move to do it.

…aaaaaaand never mind, I’m an idiot: I somehow managed to COMPLETELY miss the toFront option. My bad, stupid developer, yada yada. Thanks!

1 Like

You are not stupid, you saved me several hours for writing custom functionality.
Thanks.

1 Like