PanelTabbed height issue

The default height for a PanelTabbed component I believe is 300px. I would prefer that it default to the height of its contents.
In my case the contents for any given tab can vary. Some may need the height to be only 200px, while others may need the height to be 1000px. Therefore a hardcoded value is not an option. I'm trying to avoid all the wasted white space between the bottom of the panelTabbed component and any other component underneath it.
Here's a sample of my code:
<af:panelGroupLayout layout="vertical" id="pgl1">
<af:panelTabbed id="myPanelTab">
<af:showDetailItem text="tab 1" id="tab1">
<af:panelGroupLayout id="pgl2" layout="vertical">
<af:outputText value="Line 1.1" id="ot2"/>
<af:spacer height="10px;" id="s1"/>
<af:outputText value="Line 1.2" id="ot1"/>
</af:panelGroupLayout>
</af:showDetailItem>
<af:showDetailItem text="tab 2" id="tab2">
<af:panelGroupLayout id="pgl3" layout="vertical">
<af:outputText value="Line 2.1" id="ot3"/>
</af:panelGroupLayout>
</af:showDetailItem>
</af:panelTabbed>
<af:outputText value="This is a message on the bottom." id="ot4"/>
</af:panelGroupLayout>
Edited by: UI Tex on Jul 6, 2011 8:13 AM

That didn't work.
Here's my code with your suggestion:
<af:panelGroupLayout layout="vertical" id="pgl1">
<af:panelStretchLayout id="psl1">
<f:facet name="center">
<af:panelTabbed id="myPanelTab">
<af:showDetailItem text="tab 1" id="tab1">
<af:panelGroupLayout id="pgl2" layout="vertical">
<af:outputText value="Line 1.1" id="ot2"/>
<af:spacer height="10px;" id="s1"/>
<af:outputText value="Line 1.2" id="ot1"/>
</af:panelGroupLayout>
</af:showDetailItem>
<af:showDetailItem text="tab 2" id="tab2">
<af:panelGroupLayout id="pgl3" layout="vertical">
<af:outputText value="Line 2.1" id="ot3"/>
</af:panelGroupLayout>
</af:showDetailItem>
</af:panelTabbed>
</f:facet>
<f:facet name="bottom">
<af:outputText value="This is a message on the bottom." id="ot4"/>
</f:facet>
</af:panelStretchLayout>
</af:panelGroupLayout>

Similar Messages

  • Row Height Issue

    Oh Hi I have selected Optimize height by row content from Table and font tab and it shows all my text in activity name but when i saved the layout it changes back to keep current rows heights. Can any one tell me how do i fix this
    Thanks in Advanced

    *793199 ,*
    The "Row Height" issue is a common problem. Some things that affect my row height are:
    * Not saving my layout after changing row height
    * Notebook items in the gantt chart affecting the row height and may have to be manually widened to display all of the text or symbols
    Row Height*
    Optimize height by row content:* Indicates you want each row's height determined by its content. If you choose this option, type or select the maximum number of lines that should be included in each row.
    Good luck and let me know how it turns out.

  • Dynamic Accordion Children/Height Issue

    Hello,
    I am fairly new to flex, so this issue may actually be an easy fix, but please bare with me.
    I have an accordion in my project that is being populated with child canvas containers based on the result of a mysql_query from AMFPHP. Due to space limitations the accordion MUST remain the exact same size no matter how many records come back from my query. My problem is that when too many accordion child containers are generated they overlap on top of each other.
    Is there a way to turn a scrollbar on for the accordion? If not then is there a way to limit the number of child containers displayed inside the accordion and then control that with a VScrollbar?
    Thanks,
    Brian

    Wrap the Accordion in a VBox and you should be all set.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.containers.VBox;
          private function init():void{
            for(var a:uint=0;a<100;a++){
              var vb:VBox = new VBox();
              vb.label = "MyVBox" + a;
              vb.width = 200;
              vb.height = 100;
              acc.addChild(vb);
        ]]>
      </mx:Script>
      <mx:HDividedBox width="100%" height="100%">
        <mx:VBox width="50%" height="100%"/>
        <mx:VDividedBox width="50%" height="100%">
          <mx:VBox width="100%" height="50%"/>
          <mx:VBox width="100%" height="50%">
            <mx:Accordion id="acc" width="100%" height="50%"/>     
          </mx:VBox>
        </mx:VDividedBox>
      </mx:HDividedBox>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Accordion Height Issue

    I have apage I am working on and testing the Spry and various
    elements on...
    http://www.tommylogic.com/web-design/
    I have the tabs opening fine now and all styled like I want
    it. The issue I am having is on 3 items:
    - When I first try to open and close the panels, the first
    click never opens it. Only after the 2nd or thrird click or tab
    that I click on.
    - When they do open, they open in consistent heights,
    sometimes with a scrollbar, sometimes not.
    -Then when I get one open it wont always show all the
    content in that particular panel <div>.
    - If I close specific panel that is open first, then open
    the new panel, it seems to do a bit better, but not always the
    same.
    I am passing it through like this
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var acc8 = new Spry.Widget.Accordion("Accordion1", {
    useFixedPanelHeights: false, defaultPanel: -1 });
    All the heights are cleared in the CSS as well.
    Any clues?
    //////////////////////// resolution
    removed extra line and changed var to Accordion1
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", {
    useFixedPanelHeights: false, defaultPanel: -1 });
    and some minor css tweaks in there as well.
    Thanks Anyway... -T

    Wrap the Accordion in a VBox and you should be all set.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.containers.VBox;
          private function init():void{
            for(var a:uint=0;a<100;a++){
              var vb:VBox = new VBox();
              vb.label = "MyVBox" + a;
              vb.width = 200;
              vb.height = 100;
              acc.addChild(vb);
        ]]>
      </mx:Script>
      <mx:HDividedBox width="100%" height="100%">
        <mx:VBox width="50%" height="100%"/>
        <mx:VDividedBox width="50%" height="100%">
          <mx:VBox width="100%" height="50%"/>
          <mx:VBox width="100%" height="50%">
            <mx:Accordion id="acc" width="100%" height="50%"/>     
          </mx:VBox>
        </mx:VDividedBox>
      </mx:HDividedBox>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • HTMLB Tabstripitem height issues in NW07 (NW04s)

    We have an iView that initially displays with 3 tabs, and the content in the tabs are of varying heights. The 1st tab (initial tab to display) no longer dynamically sizes to the height of the content, but instead displays to the height of the largest tab.
    This worked fine in EP6, and NW04, but since the upgrade to NW07 (NW04s) exhibits the behavior above.
    We are using URL Isolation Method. Changing to Embedded Isolation Method corrects the sizing issue, but causes the page to refresh when a different tab is selected, so this is not an option.
    Thanks in advance for any help,
    Doug

    If there is no solution within htmlb,  then you can look into using the JScript Event  onmove or onmoveend for the iFrame element - a bit hacky and rubbish TBH.
    String iframe1="<IFRAME SRC=\"http://www.google.com\" WIDTH=\"100%\" HEIGHT=\"100%\" FRAMEBORDER=0 ONMOVE=function()></IFRAME>";
    Then in the javascript function reload the iFrame content.
    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/iframe.asp
    Not too sure how well this is going to work,  as the frame may not always 'move' co-ordinates as such when you resize the window.

  • Grouped nodes added to Vbox - Height issue? Bug?

    Maybe you guys could try this out as well? I'm most probably doing something wrong but for demonstrative purposes, I've found an issue with a VBox incorrectly stating its height value when it consists of grouped nodes.
    Take the following for example, albeit simple and incomplete (it's more or less what I've got going on in my code):
         var goupedNodesSequence : Node[];
            for(i in [0..30]){
                //Label
                var myLabel : Label = Label{               
                    textFill: Color.WHITE
                    text: "Lable Number: {i}"
             //Rectangle
                var myRectangle : Rectangle = Rectangle{
                    width: 100
                    height: 25
                    fill: Color.BLUE
             //Grouped label and rectangle
                var nodeGroup : Group = Group{
                    content: [myLabel , myRectangle ]
                insert nodeGroup into goupedNodesSequence
                }//forloop
                //VBox
                def groupedNodesVBox : VBox = VBox {
                        content: goupedNodesSequence
                        spacing: 3       
                }My code is slightly different in that the construction of the groupedNodesSequence is done in a forloop within a function that returns the sequence. The sequence of nodes is then assigned to the VBox.content property.
    I've noticed that visually, it looks correct in that each node, within the VBox, is a rectangle with a label on top of it. This is fine. But when you want to know the height property of the VBox node, it seems to be overstated in that it appears to add the height of all nodes including spacing (approximately anyway) to the total height of the VBox.
    I've even tried to use the Stack feature to place the nodes in a stack formation and messed around with the X/Y translations and layout features but a no go.
    I wonder if this has anything to do with the "bug" some people (PhiLHo ?) have encountered with using VBoxes and Scrollbars and getting incorrect Scroller max values possibly due to this incorrect height reading of the VBox? Check out PhiLHo's response to this thread to know what I'm talking about over here
    I simply compensated the incorrect height difference in my code as it was more efficient for me, but I thought I'd bring this up for discussion and see if anyone else is having the same issue.
    Essentially, put a few nodes together and group them, then add the group node to another sequence, and place that sequence of grouped nodes into a VBox. See what kind of height you're getting for the VBox.

    For me, the VBox height comes out to 865, which I think is correct. You have 31 groups in the VBox, and each group has a rect that's 25 tall. Add to this the 30 inter-item spacings of 3 gives: 31 x 25 + 30 x 3 = 865. [Edited to avoid confusion between the arithmetic expression and forum markup.]
    But if you look at the heights of each of the nodes, it's something of a puzzle. The height of each Label is 14, the height of each rect is 25, and the height of each nodeGroup (each contains a label and a rect) is 36. Huh??? How can this be if the label overlaps the rect? (I puzzled over this for a bit as well.)
    At issue is how you're finding the height of each item. If you use boundsInLocal or boundsInParent, you get the heights I listed above. If you look at the actual boundsInParent of each label and rect, though, you'll notice something odd: the boundsInParent of Label are something like:
    BoundingBox [minX = -1.0, minY=-11.0, maxX=97.0, maxY=3.0, width=98.0, height=14.0]
    So the bounds of the Label are mostly above the origin, and the bounds of the Rectangle extends below the origin. That's why, when you throw them into a Group, the height of the Group is almost the sum of the two heights, even though visually the Label and the Rectangle overlap.
    You might ask why the bounds of the Label extend above the actual label text. Well, that might be a bug. I'll investigate it. If you look at the layoutBounds of a Label, it makes more sense.
    Meanwhile, a great explanation of the various JavaFX bounds can be found on [Amy Fowler's blog|http://weblogs.java.net/blog/2009/07/09/javafx12-understanding-bounds].
    Edited by: smarks on Jan 5, 2010 3:31 PM

  • Collapsible Panel within another Collapsible Panel HEIGHT ISSUE

    Having an issue with the height of a collapsible panel that has another collapsible panel within it not adjusting. I am using Dreamweaver CS5.
    When I try the fix of changing line 431 in .js  (where you change "px" to "auto" where it says this.content.style.height = this.toHeight + "auto";) it does not work in IE7 or Firefox. If I change  the height inferences in the .js on lines 392, 431, and 439--it  worksperfect in Firefox, however it throws an error in IE7. Anyone have a  clue???
    Here is my page: http://www.l-3choosewisely.com/dev/
    username: owl
    password: l3ae2011
    Help would be greatly appreciated. PLEASE PLEASE PLEASE help me!

    For right now I have "semi-fixed" the issue, by adding a min-height to my second collapsible panel set, but really am NOT HAPPY
    with it... please help me, it has to be something with the auto-height... I know I am looking right at it and just not seeing it.

  • Row Calculation Line Height Issue: Not Same Height as Column Lines

    Hi,
    I am using BI 4.1 SP4 with Microsoft SQL Server 2012.
    When building calculations, I have noticed that the height of the line (in the rows section) is not the same as the line in the columns section. It is slightly larger. By the third calculation, it becomes very noticeable. I know that I can adjust the height and make it bigger, but I can not make is smaller.
    Please let me know how I can resolve this unalignment issue in the crosstab:
    Thank you,
    Michael

    Hi Michael,
    I'm afraid I can't say. This appears to be an IE10 rendering issue, rather than an SAP issue. I did some further testing and I don't see the problem in IE11 or Chrome but it is very apparent in IE10. I've included a screenshot from IE11 and as you can see the table is not misaligned.
    Regards,
    Philip

  • Anonymous Webdynpro Applications Height Issue

    Hi,
    I want to run few Webdynpro applications on anonymous portal. I have followed all the essentials to do that.
    I am able to view the applications also. But the height of the application is very small with horizontal and vertical scrolls.
    I tried with the iView and Page Height properties but no luck.
    I tried with all combinations of Height types in both iView and Page.
    While all the PDK applications are comming fine with appropriate height.
    What could be the issue?
    Thanks.
    -Swati

    Hi,
    The issue got solved.
    Actually I was using Webdynpro Page initially, but now I changed it to default page and I am getting the full page length.
    -Swati

  • Checkbox and movieclip height issue

    Hi,
    I added a check box component inside a empty movieclip.Before adding the movie clip height is 0,once i added a check box component on the movieclip its height shows 100.But when i saw the height of check box its just 22. whats the issue on calculating the movieclip height?
    Here is the coding
    var mc:MovieClip=new MovieClip();
    addChild(mc)
    var cb:CheckBox= new CheckBox();
    cb.label="tts"
    mc.addChild(cb)
    trace(cb.height)    // output  22
    trace(mc.height) // ouput 100
    Issue:
    I want to calculate the movieclip height on runtime.on the above case i expect the mc height as 22 but it give 100.how to solve this?

    Yes i checked it..
    trace(cb.height,mc.scaleX,mc.scaleY)
    // output  22 1 1
    trace(mc.height,mc.scaleX,mc.scaleY) // ouput 100 1 1
    seems issue not deal with the scaleX,scaleY.becase when i other movieclips the height is perfect. issue is adding check box component

  • SWFLoader width height Issue

    When I use the SWFLoader to load an swf from a URL it is not
    using the
    sizes specified in the SWFLoader component that is loading
    it, the swf
    seems to initially load at whatever size the actual swf is,
    but after
    the swf has been downloaded fully then the SWFLoader jumps to
    the
    width/height I specified, so basically all swfs I load start
    out huge
    then after sever seconds shrink to the size I want them to
    be. has
    anyone else seen this or know how to remedy this issue?
    (also the element in the swf that animate say from outside
    the
    original swf stage width/height show out way outside the
    bounds of the
    size specified)
    //set the source(within a function)
    swfplayer.source="
    http://www.somedomain.com/myswf.swf";
    <mx:Canvas id="swfplaycontainer" width="452" height="252"
    horizontalCenter="0" verticalCenter="0">
    <mx:SWFLoader id="swfplayer" width="100%"
    height="100%"/>
    </mx:Canvas>
    Also tried with no Canvas...
    <mx:SWFLoader id="swfplayer" width="452" height="252"
    width="100%"
    height="100%"/>
    Thanks, Tim
    specified size does not take effect until fully loaded swf

    hmm, well I tried explicitly setting the widht/height of the
    SWFLoader to no avail, I just tried the scaleContent, it also did
    not work ;-( I cannot hide the SWFLoader until complete event
    because these are long swf animations(they are tutorial videos in
    swf format) some seem to take 30-60 seconds to fully load(depending
    on network traffic). They do start playing quite well immediately
    but the size is messed up until complete, but I would think and
    explicit size on the SWFLoader should be the definitive answer.
    Adobe?

  • Row height Issues

    I'm working in MS Project 2013. My row height has adjusted itself and the text within the rows has reduced in size and it looks silly. There's lots of unnecessary white space. Not sure if its something to do with text wrapping, regardless,
    I don't know how to adjust the row heights back to the standard height. Has anyone else encountered this issue in the past?

    Hi,
    In the format tab, unclick the "wrap text" option:
    Then select the entire table by clicking on the grey top left case, select a line between 2 rows in the grey first column (ID) and reduce the row height. Finally note that the row height is a parameter in your table definition.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • SSRS 2008 Header height issues due to merged columns

    When working on a report today we ran into an issue which took us quite some testing to figure out. At some point we decided to switch some of the headers of columns around and when rendering the report again it for some reason created a header which was
    way heigher then the biggest text there, showing a huge empty space in the header underneath the text.
    My first guess was that there had to be some extra spaces in some column or something alike, which made the cells grow so much. This however was not the case. As a next step I cleared the cells in the headerrow one by one to figure out which field was making
    the header grow this much. It turned out to be the header in the 10th column. When I replaced the text in this cell, it did not make the header grow anymore. When I put the original text back, it started growing again. As a next step I removed the text in
    this cell, pasted it in another cell (column 11) and rendered the report, with the same huge header again. Out of frustration I tried a desperate last move, copied it to column 1 and rendered the report, the effect was a small header without some weird height.
    So the conclusion was that this text was making the header grow hugely in the columns 10 and 11, but not in column 1? What is the difference between column 10/11 and column 1?
    Then I noticed that column 7, 8 and 9 were pretty small columns, only holding integer values. The header above this, however, was one word, so the 3 cells in the header for these columns were MERGED. So basicly, only looking at the cells in the header, my
    huge text was in the 8th cell from the left, not the 10th (10th column, but due to merging the 8th cell). As a test I editted the width of the 8th column (the middle one of the merged cells) to be as wide as all the other columns holding text. The rendering
    of the report, with the huge text in the original headercolumn, now did not grow my header to be extremely big. This combined with the way "hiding" works in SSRS 2008 oppose to SSRS 2005 (ie, in 2008 a hidden cell disappears completly, moving all next cells
    up to the left, where as in 2005 a hidden cell just shows as empty in the report), leads me to believe that there is a bug in SSRS 2008 considering cell widths and merged cells? It is like the 10th column header now thinks it is part of the 8th column (being
    the 8th cell in its row due to merging) and therefor works with the width of this 8th column to judge how much increased height it needs. In fact it is the width of the 10th column and therefor doesnt need the height it creates, resulting in a huge empty space
    underneath the text.
    Is this a known issue by Microsoft? Any ETA on this for a fix?

    This combined with the way "hiding" works in SSRS 2008 oppose to SSRS 2005 (ie, in 2008 a hidden cell disappears completly, moving all next cells up to the left, where as in 2005 a hidden cell just shows as empty in the report), leads me to believe that
    there is a bug in SSRS 2008 considering cell widths and merged cells?
    Hi Joel_i,
    I was a little confused with the paragraph above. Could you please elaborate it?
    Based on the information posted, I tried to reproduce the scenario, but it works fine. During my test, the header cells grow
    only when the text in the head column is too long which will caused newline, or there is some extra space in some columns. So, you might need to check the properties of the 8<sup>th</sup> column cell, such asSpaceAfer,
    SpaceBefore, to make sure all properties are set rightly.
    To provide you further assistance, could you please post the report and dataset with sample data to our data collection E-mail
    address?
    E-mail: sqltnsp AT microsoft.com (Please replace the AT with @, and remove additional spaces).
    Thanks,
    Lola Wang
    Please remember to mark the replies as answers if they help.

  • Weird Hyperlink Height Issue

    Hey InDesign community,
    This is my first time on the forums, and I come with a perplexing issue.
    I'm using InDesign CS3 and creating documents that I am converting to PDF (using the "Adobe PDF Presets" and a modified version of "High Quality Print", including Bookmarks and Links). My problem is when I create a Hyperlink (text only) and then convert to PDF, the clickable hyperlink area is significantly taller than the line height. For instance:
    This area is clickable
    This area is clickable
    This area is clickable
    This is my  link  text.
    This area is clickable
    This area is clickable
    This area is clickable
    This is a rather large issue when I have mutliple links near each other because the link closer to the bottom of the page gets priority. Any ideas would be appreciated.
    Quick Edit: The TOC links (bookmarks) do not have this problem.
    Regards,
    -Mike

    So, I figured I'd try to make a quick test PDF and show you that one, unfortuately (or fortunately) those links worked fine. The ones from the other docs still do not, however. The screen shot from the problem PDF is below:
    I used the same PDF settings and I went through the same link-making process to make the above as I did the one that works. Could it be somewhere in my paragraph or character styles? Here's how the boxes look in InDesign:
    Thanks in advance for the help.

  • DIV and Table Tag - height issue

    Help. I'm using div tags to setup the structure for sections
    of my Web page. But when it comes to populating these pages with
    dynamically generated text, the height changes. Sure the table td
    cell expands, but the div surrounding the table tags DOES NOT. Here
    is the page where I am having the problem.
    http://www.fuelcellmagazine.com/story2.cfm?id=17
    Scroll down to the bottom of the page and you'll see the
    table tag overflowing past the div tag settings.
    Any suggestions?
    D

    That is quite a div soup you have there. Why so much absolute
    positioning?
    Two ticks of the enlarge text in FF and the page is
    completely broken. Your
    problem is not the div heights, it's the absolute
    positioning.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "OnDemand Junkie" <[email protected]> wrote
    in message
    news:e246jj$1fb$[email protected]..
    > Help. I'm using div tags to setup the structure for
    sections of my Web
    > page.
    > But when it comes to populating these pages with
    dynamically generated
    > text,
    > the height changes. Sure the table td cell expands, but
    the div
    > surrounding
    > the table tags DOES NOT. Here is the page where I am
    having the problem.
    >
    >
    http://www.fuelcellmagazine.com/story2.cfm?id=17
    >
    > Scroll down to the bottom of the page and you'll see the
    table tag
    > overflowing
    > past the div tag settings.
    >
    > Any suggestions?
    >
    > D
    >

Maybe you are looking for