jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu menu getting cut off on iPhone

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 12 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • menu getting cut off on iPhone #11059

    myamoe
    Participant

    I am using jqxmenu for my main menu. The rightmost item (“resources”) gets truncated and does not display on an iPhone. This is true whether the device is turned in Portrait or in Landscape.

    http://www.myamoeukuleles.com/uketracker.php?trackingNumber=767

    Any ideas what I need to adjust?

    thanks,

    gordon

    menu getting cut off on iPhone #11154

    Peter Stoev
    Keymaster

    Hi gordon,

    Which IPhone do you use(3, 4, 4S, 5)? Is it possible to swipe right when the menu is opened?

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    menu getting cut off on iPhone #11157

    myamoe
    Participant

    I’m getting that behaviour on an iPhone 4. It was also reported on a 1 month old iTouch. Both are running the latest iOS release.

    I think I see the issue, but I’m not how you recommend correcting it. I want that top menu centered on my page:

    http://www.myamoe.com

    The only way I could find to do it well (on IE, Firefox, Safari, Chrome) was to put the following style into the div containing the jqxmenu:

    style=”position: relative; left: 155px”

    My guess is that this is causing the menu to be shifted to the right too much on the iPhone.

    So, any suggestion on how to center my main menu in a cross browser & cross-device compatible way?

    thanks for your incredible support, by the way. Our site uses nearly 1/2 of your widgets & we love them.

    gordon

    menu getting cut off on iPhone #11209

    Peter Stoev
    Keymaster

    Hi gordon,

    Example for centering the menu:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
    <script type="text/javascript" src="../../scripts/gettheme.js"></script>
    </head>
    <body>
    <div id='content'>
    <script type="text/javascript">
    $(document).ready(function () {
    var theme = getTheme();
    $("#jqxMenu").jqxMenu({ width: '500px', height: '30px', theme: theme });
    });
    </script>
    <div style="position:relative; left: -250px; margin-left: 50%;" id='jqxMenu'>
    <ul>
    <li><a href="#Home">Home</a></li>
    <li>Solutions
    <ul style='width: 250px;'>
    <li><a href="#Education">Education</a></li>
    <li><a href="#Financial">Financial services</a></li>
    <li><a href="#Government">Government</a></li>
    <li><a href="#Manufacturing">Manufacturing</a></li>
    <li type='separator'></li>
    <li>Software Solutions
    <ul style='width: 220px;'>
    <li><a href="#ConsumerPhoto">Consumer photo and video</a></li>
    <li><a href="#Mobile">Mobile</a></li>
    <li><a href="#RIA">Rich Internet applications</a></li>
    <li><a href="#TechnicalCommunication">Technical communication</a></li>
    <li><a href="#Training">Training and eLearning</a></li>
    <li><a href="#WebConferencing">Web conferencing</a></li>
    </ul>
    </li>
    <li><a href="#">All industries and solutions</a></li>
    </ul>
    </li>
    <li>Products
    <ul>
    <li><a href="#PCProducts">PC products</a></li>
    <li><a href="#MobileProducts">Mobile products</a></li>
    <li><a href="#AllProducts">All products</a></li>
    </ul>
    </li>
    <li>Support
    <ul style='width: 200px;'>
    <li><a href="#SupportHome">Support home</a></li>
    <li><a href="#CustomerService">Customer Service</a></li>
    <li><a href="#KB">Knowledge base</a></li>
    <li><a href="#Books">Books</a></li>
    <li><a href="#Training">Training and certification</a></li>
    <li><a href="#SupportPrograms">Support programs</a></li>
    <li><a href="#Forums">Forums</a></li>
    <li><a href="#Documentation">Documentation</a></li>
    <li><a href="#Updates">Updates</a></li>
    </ul>
    </li>
    <li>Communities
    <ul style='width: 200px;'>
    <li><a href="#Designers">Designers</a></li>
    <li><a href="#Developers">Developers</a></li>
    <li><a href="#Educators">Educators and students</a></li>
    <li><a href="#Partners">Partners</a></li>
    <li type='separator'></li>
    <li>By resource</li>
    </ul>
    </li>
    <li>Company
    <ul style='width: 180px;'>
    <li><a href="#About">About Us</a></li>
    <li><a href="#Press">Press</a></li>
    <li><a href="#Investor">Investor Relations</a></li>
    <li><a href="#CorporateAffairs">Corporate Affairs</a></li>
    <li><a href="#Careers">Careers</a></li>
    <li><a href="#Showcase">Showcase</a></li>
    <li><a href="#Events">Events</a></li>
    <li><a href="#ContactUs">Contact Us</a></li>
    <li><a href="#Become an affiliate">Become an affiliate</a></li>
    </ul>
    </li>
    </ul>
    </div>
    </div>
    </body>
    </html>

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.