jQuery UI Widgets Forums Navigation Menu, Context Menu How are padding-bottom and padding-top calculated

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • NoiZy
    Participant

    Hi Community,

    I have strange problem with the menu plugin.
    I use it on 3 different sites and it works perfectly, but now I use it on another one and it looks bad, the problem is, the padding-bottom and padding-top of the “li” tag are calculated wrong, 15px for both on a 30px height menu, that can not work.

    So, my question is, how are this values calculated, so that I can take steps against it.

    Best regards
    NoiZy


    Peter Stoev
    Keymaster

    Hi Noizy,

    The automatic top and bottom paddings are calculated when the menu is displayed and depend on the menu’s height and the default height of the top-level menu items. These paddings are calculated only when the ‘autoSizeMainItems’ property of jqxMenu is set to true. In the newer versions of jQWidgets, the value of this property is false by default. I suggest you to upgrade to the latest version, if you are not already using it.

    Best Regards,
    Peter Stoev

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.