EasyUI Forum
May 02, 2024, 07:18:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Menu show behind dialog  (Read 936 times)
MSAG
Newbie
*
Posts: 41



View Profile Email
« 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
« Last Edit: October 20, 2022, 03:13:39 AM by MSAG » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!