I am facing a challenge with my left menu, created using jQuery panel. Currently, the height of the menu is set to full screen. However, I would like to adjust it so that its height matches the content within (in this case, the ul attribute). Despite trying to manually edit the height from the div style (setting width:100px;height:10px), I have not been successful. Can anyone explain why jQuery panel behaves in this manner?
Does anyone have any suggestions or solutions for this issue?
<script type="text/javascript" src="js/jquery.mobile-1.4.5.min.js"></script>
<!--LEFT TOP MENU PANEL-->
<div data-role="panel" id="leftMenu" data-position="left" data-display="overlay" data-theme="a" data-overlay-theme="a" style="width:170px;">
<ul data-role="listview">
<li data-icon="false"><a id="a" href="#">Show A Items</a>
</li>
<li data-icon="false"><a id="b" href="#">Show B Items</a>
</li>
<li style="display:none" data-icon="false"><a>Show C Items</a>
</li>
<li data-icon="false"><a id="c" data-transition="none" href="#show_pollen">Show D Items</a>
</li>
</ul>
</div>