EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on January 16, 2013, 06:33:05 AM



Title: menu: The menu width can be automatically calculated (does not work in IE9)
Post by: mzeddd on January 16, 2013, 06:33:05 AM
Here is the code I have in page

Code:
<div id="menu1">
<div onclick="switchPage('page1');" iconCls="icon-search">Search</div>
<div onclick="switchPage('page2');">Export</div>
</div>

In case of Firefox (12.0(In Windows) and 17.0(In Linux)) or Opera it looks very good but when I load the same page in IE9 the same menu becomes very wide.
Too wide to fit my fullscreen (1280x1024) browser and show menu items text.

The work around is to return style="width:150px;" back into main div


Title: Re: menu: The menu width can be automatically calculated (does not work in IE9)
Post by: mzeddd on January 16, 2013, 07:20:13 AM
Update:

"Compatibility View" feature in IE9 does not fix this problem


Title: Re: menu: The menu width can be automatically calculated (does not work in IE9)
Post by: stworthy on January 16, 2013, 08:48:30 PM
Please download the fixed menu plugin from http://www.jeasyui.com/easyui/plugins/jquery.menu.js.


Title: Re: menu: The menu width can be automatically calculated (does not work in IE9)
Post by: mzeddd on January 21, 2013, 01:06:03 AM
Hi,

Yes, it helps.

Quote
<!DOCTYPE html>
also fixes this problem