layout icon indicating copy to clipboard operation
layout copied to clipboard

Add workaround to properly display overflowing child elements of panes

Open rbtbar opened this issue 11 years ago • 4 comments

The workaround preserves the initial 'auto' z-index of 'panes', so that it is possible to keep many overflowing child elements of 'panes' visible in front of all other 'panes' while the mouse is neither over the 'pane' or its children;

Actually, this solution replaces handing of z-indexes via: allowOverflow( elem_or_pane ) resetOverflow( elem_or_pane ) showOverflowOnHover ... in most of the standard use cases.

rbtbar avatar Oct 06 '14 12:10 rbtbar

The corresponding Gist file:

https://gist.github.com/rbtbar/bfe6ddbab441bee840a2

rbtbar avatar Oct 10 '14 21:10 rbtbar

Looks like this is already in the jquery3 branch, do you need this specifically for jquery2? (https://github.com/GedMarc/layout/blob/master/dist/layout-default.css)

GedMarc avatar Nov 23 '17 18:11 GedMarc

The new commit looks fine. The extra line edits are all just trailing whitespace trimming, plus trimming one odd but of gibberish! (abcdef)

allpro avatar Nov 23 '17 21:11 allpro

However the CSS commit from 2014 would BREAK many layouts. Layout dynamically adjusts element zIndexes when panes overlap ('slide'). Hard-coding a zIndex would prevent this.

The reason allowOverflow() and similar methods exist are so users can temporarily override the dynamic zIndexes in special scenarios. This cannot be a default though.

It is OK for a 'user' to hard-coded a zIndex on a pane that requires it, assuming no other pane will ever overlay it. A common example is a header that contains drop-down menus. Again, this cannot be a default.

allpro avatar Nov 23 '17 22:11 allpro