jquery - is there a way to show a child element outside the boundaries of a parent with overflow:hidden? -


i'm working on plugin allows popover panels in jquery mobile.

a panel this:

<div data-role="panel" data-panel="popover" data-id="my_name">     // jqm pages </div> 

and goes after content section of jqm page.

sample (buggy) here: sample

popover sample

panels behave viewports or pagecontainers. jqm default uses body pagecontainer. plugin allows panels, integrate popovers normal navigation.

my problem:
added triangles popovers, need keep panel css overflow-x: hidden thereby hiding triangles. if comment out overflow:hidden, triangle visible, when i'm changing pages, panel "bleeds out", so:

triangle visible, panel bleeding

as content section determines scrollbar, tried shuffling overflow:hidden around, setting on page inside popover nothing works. don't want move triangle outside of panel, so:

question:
there way show child element outside of parent overflow:hidden or why setting overflow-x:hidden hide triangle, on top/bottom (more y x)?

just looking ideas or other workarounds.

thanks help!

edit: here triangle css:

.popover_triangle {      position: absolute;     line-height: 0%;      width: 0px; border-top: 16px solid rgba(0,0,0,0);      border-left: 16px solid rgba(0,0,0,0);      border-right: 16px solid rgba(0,0,0,0);      border-bottom: 16px solid black;       } .ui-triangle-top .popover_triangle {      top: -32px;     } .ui-triangle-bottom .popover_triangle {      bottom: -34px;     } 

the popover has:

.ui-popover {      position:  absolute;      z-index:1005 !important;      border: 3px solid black;       border-radius: 4px;      left: auto;      } .popover1 {      margin-top: 3.25em;      right: 5em;       height:25em;      width: 15em;      top: 0;     } 

no, overflow-x: hidden, cannot have triangle sticking out of popover absolute positioning... have tried on various browsers!

what need do, create div inside popover, , apply , overflow-y: scroll or auto div. (i assume might have meant overflow-y instead of overflow-x, since scrollbar vertical?) leave normal overflow popover element. overflow-y: auto inside div working properly, need give height, eg height: 100%. (if can't specify pixel amount , 100% not make space other elements in popover, there other ways work around that)

eg:

<div data-role="panel" data-panel="popover" data-id="my_name">     // jqm pages     <!-- insert div here contains content , hidden overflow --> </div> 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -