Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Focus layer in multi layer #763

Open
austenstone opened this issue Aug 27, 2021 · 0 comments
Open

Feature Request: Focus layer in multi layer #763

austenstone opened this issue Aug 27, 2021 · 0 comments

Comments

@austenstone
Copy link

austenstone commented Aug 27, 2021

It would be nice to be able to display a specific layer at the top when using allowMultiLayer: true.

Today it's difficult to actually manage the items on different layers.

Maybe recalculate the z-index with something like

(item.layerIndex + this.gridster.$options.layerOffset) % this.gridster.maxLayerIndex

This way the zindex is relative to the current layer offset. You can move through layers by iterating layerOffset from 0 to maxLayerIndex.

References: Added allow widget in multiple layers #599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant