coderespawn / dock-spawn

Dock Spawn is a web based dock layout engine that aids in creating flexible user interfaces by enabling panels to be docked on the screen similar to Visual Studio IDE
http://dockspawn.com
MIT License
255 stars 76 forks source link

In the javascript sample clicking on the same window multiple times will keep it above other windows #16

Open TrevorSundberg opened 10 years ago

TrevorSundberg commented 10 years ago

I noticed the way window ordering was being done was by incrementing z-index starting at 1000. This means that if you click a floating window 10 times, its z-index becomes 1010. You then click another window to bring it to the front, and its z-index only becomes 1001 (must click it 10 times also to get it to appear in front).