EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: MSAG on October 20, 2022, 02:38:12 AM



Title: Menu show behind dialog
Post by: MSAG on October 20, 2022, 02:38:12 AM
Hi
when i show menu by

$('#picMenu').menu('show', GetLocation(ID));

it appear but behind dialog

i try to change model to false for dialog but nothing is happened

and i try to change  menu inline to true but nothing is happened

can you help me

=====================

Not only menu anything show it after dialog appear but behind dialog like a window


Title: Re: Menu show behind dialog
Post by: jarry on October 20, 2022, 11:51:28 PM
This example works fine.
Code:
<div id="picMenu" class="easyui-menu" style="width:120px;overflow: hidden;">
<div>Item1</div>
<div>Item2</div>
<div>Item3</div>
<div>Item4</div>
</div>
<div class="easyui-dialog" style="width:600px;height:300px;padding:20px">
<button class="easyui-linkbutton" onclick="showmenu(event)">Show Menu</button>
</div>
<script>
function showmenu(e){
e.preventDefault();
$('#picMenu').menu('show', {left:e.pageX,top:e.pageY})
}
</script>