EasyUI Forum
November 04, 2025, 05:08: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: menu: content wider than the item width  (Read 10424 times)
itay-g
Newbie
*
Posts: 35


View Profile
« on: July 22, 2014, 01:30:58 AM »

Hi,
I'm using easyui menu and sometimes the contents of some items 'cuts' because the menu item width is smaller than it's content width.
I noticed it happens only when the item starts not visible (display none) and then i dynamically change it's state to visible.
I need the menu item width will fit their content width.
I appreciate your help

Thanks,
Itay
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: July 22, 2014, 02:38:34 AM »

Please call 'showItem' or 'hideItem' methods to display or hide a menu item. These two methods are extended in the patch file, which can be downloaded from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip. The code below shows how to display a menu item.
Code:
var item = $('#mm').menu('findItem', 'Open');
$('#mm').menu('showItem', item.target);
Logged
itay-g
Newbie
*
Posts: 35


View Profile
« Reply #2 on: July 23, 2014, 07:48:29 AM »

Works. Thank you!
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!