EasyUI Forum
May 16, 2024, 01:30:48 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: menubutton causes unwanted scrollbars to appear  (Read 7702 times)
Quarkrunner
Newbie
*
Posts: 4


View Profile
« on: November 10, 2013, 10:19:11 PM »


I can't work out how to stop the easyui-menubutton make unwanted scrollbars appear. I have written the following to demonstrate the problem. Just resize your browser height so that the vertical scrollbar just DOESN'T appear (just below the indicated line), then roll over the menubutton at the top.  On all major browsers you will see unwanted scrollbars appear.

Please advise.

Thanks  in advance.

Code:
<html>
<head>
<link rel="stylesheet" type="text/css" href="./jquery-easyui-1.3.4/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="./jquery-easyui-1.3.4/themes/icon.css" />
<script src="./jquery-easyui-1.3.4/jquery.min.js"></script>
<script src="./jquery-easyui-1.3.4/jquery.easyui.min.js"></script>
</head>

<body>

<div style="padding:5px;border:1px solid #ddd;width:250px">
<a href="javascript:void(0)" id="mb" class="easyui-menubutton" data-options="menu:'#options-menu'">Options</a>
</div>
<div id="options-menu" style="width:150px;" data-options="onClick:function(item){ optionsMenuClick(item.name); }">
<div data-options="name:'started'">Getting started</div>
<div data-options="name:'tutorials'">Tutorials</div>
<div data-options="name:'faq'">FAQ</div>
<div class="menu-sep"></div>
<div data-options="name:'settings'">Settings</div>
<div data-options="name:'install'">Install Data</div>
<div data-options="name:'about'">About</div>
</div>


<div>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>.</p>
<p>Resize your browser window so that it's just below this line (so that no browser scrollbars appear):</p>
<p>------------------------------------------------------------------</p>
</div>

</body>
</html>
Logged
Quarkrunner
Newbie
*
Posts: 4


View Profile
« Reply #1 on: November 11, 2013, 06:44:38 PM »

Please ignore previous post. It turns out the .menu-shadow style within easyui.css had been changed from its default setting, causing the issue. Apologies to anyone who tried to replicate/fix.
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!