jQuery UI Widgets Forums Navigation Tabs Obtaining dimensions of inner tab

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Obtaining dimensions of inner tab #13070

    sdalby
    Member

    Is there a way to obtain the dimensions of the inner tab?

    If the ribbon dimensions are available, this is also fine, then it must be possible to derive the size of the inner tab based.

    Thanks in advance
    /Søren

    Obtaining dimensions of inner tab #13108

    Dimitar
    Participant

    Hello Søren,

    You may assign an id to the content div of the tab and then call the jQuery height method, i.e.:

                var i = $("#content1").height();
    $("#alertHeight").click(function () {
    alert(i);
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Obtaining dimensions of inner tab #13119

    sdalby
    Member

    Hi again,

    As I read it, you are explaining me in general how to get the height of a div in jquery.

    It was exactly this I was trying, but you generate a div with class qx-tabs-content and I need to get the dimensions of the jqxtab client area.

    TIA
    /Søren

    Obtaining dimensions of inner tab #13227

    Dimitar
    Participant

    Hi Søren,

    In that case, to get the height of the div with class jqx-tabs-content, you can do the following:

                var height = $("#jqxTabs .jqx-tabs-content").height();

    where jqxTabs is the id of the div from which you initialize the widget.

    Best Regards,
    Dimitar

    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.