EasyUI Forum
May 14, 2024, 08:04:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Dropdown menu not on top  (Read 4578 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« on: June 30, 2017, 07:03:26 AM »

Hello
I have dropdown button which show menu on hover,
I made example here:
http://code.reloado.com/ecituq3/28/edit
Problem is that second Button does not show menu correctly when you come with mouse over him. Menu is displayed somehow in the background.
I try with z-index but it does not worked.
Any help will be great.
« Last Edit: July 01, 2017, 01:30:43 PM by Pierre » Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: June 30, 2017, 08:24:25 PM »

You should set the 'overflow:visible' CSS style for the container panel. The updated example below works fine.

http://code.reloado.com/ecituq3/29/edit#preview
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #2 on: July 01, 2017, 12:23:32 AM »

Thank you very much for your help but I can not figure out how to implement it on other example:
http://code.reloado.com/ecituq3/30/edit#preview
if you resize browser so the menu have no place to open to bottom must must be opened at top (please see image below) then menu is not opened.
In your example it works but on this (new) it does not.
Can you please tell me why not?
Thank you.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #3 on: July 01, 2017, 08:18:38 AM »

You should set the 'cls' property with 'panel-overflow-visible' value to let the panel has the 'overflow:visible' style.
Code:
<div data-options="region:'center'" cls="panel-overflow-visible" style="overflow:visible">
  <table id="dg" data-options="header:'#invoices_header',singleSelect:true,border:false,fit:true,fitColumns:true,scrollbarSize:0,cls:'panel-overflow-visible'"> 
...

The example below works fine.

http://code.reloado.com/ecituq3/31/edit#preview
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #4 on: July 01, 2017, 01:30:30 PM »

Awesome, thank you so much for your help.
It works perfect now  Grin
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!