Group setting height to size of content, after having it set explicitly

Hi
I have a group like:
<Group id="test" height="100">
<button height="200" />
</Group>
Can I get the group, to have the size of the content, after having set the height explicitly?
Regards
Martin Andersen

It seems that the default is actually 0 as demonstrated in this sample:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               creationComplete="init()">
    <fx:Script>
        <![CDATA[
            import mx.core.UIComponent;
            import spark.components.Group;
            private function init():void {
                trace((new UIComponent()).height); // prints 0
                trace((new Group()).height); // prints 0
        ]]>
    </fx:Script>
</s:Application>

Similar Messages

  • No display of iview content after cache properties are set

    Hello,
    In an effort to improve the portal performance we activated the Iview Load Parameters(Cache level, validity, client side caching etc) and after that we are not seeing any content of the iview in the portal.
    Cache level - Shared
    Cache validity - 24 hrs
    client side caching - yes.
    All the views are pointing to KM folders.
    If we change the Cache level to none then iview content is visible.
    I have flushed the cache but it didnt work either.
    Do we have to set any other parameters to support caching Portal KM configuration or Visual adminstrator.
    Let me know how to display the content after the caching parameters are set for iview so as to improve the performance.
    Thanks,
    Praveen
    Let me know what

    Hi Praveen,
    Activating Caching on KM (Navigation, for example) "works", but makes no sense. I don't know on what SP level you are, but I just checked it on SP18:
    Take a Nav iView which points to - for example - /documents/xmlform. With your settings, if User A opens the iView and navigates to the subfolder "preview", and then UserB opens the iView, UserB immediately sees /documents/xmlform/preview, instead of the upper folder.
    So, on one hand it "works", on the other, in many cases you might have unexpected results on KM iViews.
    To improve KM performance, the first step always is to follow the performance guide: http://service.sap.com/~sapidb/011000358700004976172005E.PDF
    Hope it helps
    Detlev

  • How to get the file content after uploading file

    Hello everyone!
    I have a question. Anyone can provide an example code by jsp that getting the uploaded file content after user uploading a file?
    Your help is highly appreciated!!!

    My experience is you need to do it twice: first read it to a StringBuffer and readline. Then write the file to server. See the code below
    MultipartParser parser = new MultipartParser(request, 10000000);
    Part part = null;
    FilePart filePart = null;
    File uploadDir = new File("/Uploads/");
    if (!uploadDir.exists()) {
    uploadDir.mkdir();
    while(true){
         part = parser.readNextPart();
         if(part == null)
              break;
         if(part instanceof FilePart){
              filePart = (FilePart)part;
              filename = filePart.getFilePath();
              //You can do one of the following option. Here is read line to a buffer and display to screen
    //if (filename != null) {
              //Do not store the file to server machine.
    //long size = filePart.writeTo(uploadDir);
    // System.out.println("The number of bytes written is "+size);
              reader = new BufferedReader(new InputStreamReader(filePart.getInputStream()));          
              String newline=reader.readLine();
              if(newline!=null)     {     
              reconcileContent.append("<table border=\"1\"><tr><th>Destination ID</th><th>File ID</th><th>Rept Date</th><th>As of Date</th><th

  • S:TileGroup doesn't size to contents

    When the s:TileGroup is wide enough to fit all elements in one row its still 3 rows heigh. Why isn't it dynamically adjusting it's height?
    Setting requestedRowCount to 1 solves the height problem but blocks content reflowing.

    This example seems to work fine:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <s:TileGroup  width="100%" height="100%">
            <s:Button width="200" height="200" />
            <s:Button width="200" height="200" />
            <s:Button width="200" height="200" />
            <s:Button width="200" height="200" />
        </s:TileGroup>
    </s:Application>
    Can you provide a small example like this that demonstrates what you are seeing?

  • Grouping Sets with Version 1.1

    Has anyone tried to do a query using grouping sets in version 1.1? Everytime I try I get:
    Error report:
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    00604. 00000 - "error occurred at recursive SQL level %s"
    *Cause:    An error occurred while processing a recursive SQL statement
    (a statement applying to internal dictionary tables).
    *Action:   If the situation described in the next error on the stack
    can be corrected, do so; otherwise contact Oracle Support.

    I can't imagine why SQL Developer would use more cursors than other tools as it is essentially just sending the sql statement to the database using jdbc. There were some problems with cursor leaks in earlier versions but I believe those were fixed.
    Try this query from another session. It shows current and accumulated cursors. Run it when you start sqldeveloper, and before and after running the query.
    select sid, name,value
    from v$sesstat sess
    inner join v$statname stat
      on sess.statistic#=stat.statistic#
    where sess.sid=<your session sid>
    and name like 'opened%';

  • [svn] 4547: Change Group's measured minimum size computation.

    Revision: 4547
    Author: [email protected]
    Date: 2009-01-15 16:23:22 -0800 (Thu, 15 Jan 2009)
    Log Message:
    Change Group's measured minimum size computation.
    In this change:
    If a Group clips content or resizeMode is scale, then measured minimum is zeroed out.
    QE Notes: A couple of FxContainer and FxDataContainer tests will fail. Other tests that depend on measured minimum size of a Group with clipContent="true" or resizeMode="scale" will fail and need to be updated.
    Doc Notes:
    Bugs: None
    Reviewer: Hans
    tests: compile, checkintests, mustella (gumbo/core/..., gumbo/components/FxContainer, gumbo/components/FxDataContainer)
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxDataContainer.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/baseClasses/GroupBase.as

    FYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989

  • Finder slow in showing contents after start up

    I have a brand new Macbook Pro Retina (late 2013) and this is my first mac. So far it is a great computer besides the keypad and trackpad freeze issue. I am not sure if this is normal, but my finder takes about 30 seconds to show the contents after stratup, this happens also when I log out and log back in. I tried looking up the issue and tried few things others have suggested
    1) removed all programs under login items
    2) removed com.apple.finder.plist from library/preferences
    3) Indexed hackintosh HD, by adding and then removing it -  spotlight privacy settings
    No luck so far. Anyone have this issue, any suggestion to fix this.

    just follow below steps and your problem solved:
    System Preferences > Network > Select you internet service (be it Airport, Ethernet etc) then click advanced tab > Select  DNS and enter the settings
    Google server settings are- 8.8.8.8
    Another option is to try turning off IPv6:
    In System Preferences --> Network -> choose the Ethernet tab in the far left column --> Advanced button -> TCP/IP tab --> Configure IPv6: dropdown menu, choose Off --> Okay button.
    The reason that turning IPv6 off may improve performance is that some DNS servers do not properly respond to IPv6 requests. As a result, your computer has to time out waiting for a response and then try a secondary DNS server.
    In recent versions of OS X, IPv6 typically is set to "automatic" by default. You have nothing to lose by turning IPv6 to "off" and then seeing if performance improves.

  • Is this a bug with grouping sets?

    Version is Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    SQL> with data as
      2  (select rownum r, 'X' x, 1 n from dual connect by rownum <= 10)
      3  select x
      4       , sum(n) s
      5       , (select sum(1) from dual where dummy = x) t
      6  from data
      7  group by grouping sets (x, ())
      8  /
    X          S          T
    X         10          1
              10
    SQL>  Shouldn't the superaggregate row have a 1 in the T column?

    Here's your QUERY with the addition of the GROUPING() function:
    SQL> WITH data AS
      2  (
      3     SELECT rownum r
      4          , 'X'    x
      5          , 1      n
      6     FROM   dual
      7     CONNECT BY rownum <= 10
      8  )
      9  SELECT GROUPING(x)
    10       , x
    11       , sum(n) s
    12       , (SELECT sum(1) FROM dual WHERE dummy = x) t
    13  FROM   data
    14  GROUP BY GROUPING SETS (x, ())
    15  ;
    GROUPING(X) X          S          T
              0 X         10          1
              1           10In this case the value for X is null because it's a subtotal row. If you look at the execution plan for this statement:
    PLAN_TABLE_OUTPUT
    SQL_ID  gumphwvgumqc4, child number 0
    WITH data AS (  SELECT rownum r       , 'X'    x       , 1      n  FROM
      dual  CONNECT BY rownum <= 10 ) SELECT /*+gather_plan_statistics*/ x
        , sum(n) s      , (SELECT sum(1) FROM dual WHERE dummy = x) t FROM
    data GROUP BY GROUPING SETS (x, ())
    Plan hash value: 1718326399
    | Id  | Operation                       | Name | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   0 | SELECT STATEMENT                |      |      1 |        |      2 |00:00:00.01 |       0 |    |  |          |
    |   1 |  SORT AGGREGATE                 |      |      2 |      1 |      2 |00:00:00.01 |       4 |    |  |          |
    |*  2 |   TABLE ACCESS FULL             | DUAL |      2 |      1 |      1 |00:00:00.01 |       4 |    |  |          |
    |   3 |  SORT GROUP BY ROLLUP           |      |      1 |      1 |      2 |00:00:00.01 |       0 |  2048 |  2048 | 2048  (0)|
    |   4 |   VIEW                          |      |      1 |      1 |     10 |00:00:00.01 |       0 |    |  |          |
    |   5 |    COUNT                        |      |      1 |        |     10 |00:00:00.01 |       0 |    |  |          |
    |   6 |     CONNECT BY WITHOUT FILTERING|      |      1 |        |     10 |00:00:00.01 |       0 |    |  |          |
    |   7 |      FAST DUAL                  |      |      1 |      1 |      1 |00:00:00.01 |       0 |    |  |          |
    Predicate Information (identified by operation id):
       2 - filter("DUMMY"=:B1)The value for X is being bound to the subquery. If X is null this won't return any rows (I'm sure you knew that :) ). I would say this is expected albeit confusing behavior. You get the same results if you use CUBE or ROLLUP as well.

  • Isse with using Grouping Sets in SQL Server 2008 R2

    Hi,
    I created a query in SQL Server 2012 using grouping sets that works fine.  When I try to use the same query in SQL Server 2008 I get an error ("Inccorrect syntax near SETS").
    I researched using grouping sets in 2008 and didn't see any issue with my query.  What is different in grouping sets 2008 vs 2012?
    SELECT tl.ClientRegionCd as [Client Region Code] , tl.ClientRegionDesc as [Region Name], count(tl.CompleteICN) as [Trauma Letters Sent]
    from TORT_Trauma_Letters tl
    Where CONVERT(VARCHAR(26), tl.SecondNoticeSent, 23) between '2014-06-12' and '2014-06-12'
    GROUP BY GROUPING SETS((tl.ClientRegionCd, tl.ClientRegionDesc), ())
    Stacie

    Check this blog post as how to deal with date ranges
    http://sqlblog.com/blogs/aaron_bertrand/archive/2009/10/16/bad-habits-to-kick-mishandling-date-range-queries.aspx
    For your result you can simply achieve your result with UNION ALL, e.g.
    select Client, Region, Letters
    from myTable 
    UNION ALL
    select NULL, NULL, SUM(letters) as Letters
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • My iphone I fell to the ground yesterday, from a height of approximately 1 meter. after this I trailed off, now only turns on when I plug the usb but the apple appears and just turn off and turn back, there is nothing more that I recommend doing?

    my iphone I fell to the ground yesterday, from a height of approximately 1 meter. after this I trailed off, now only turns on when I plug the usb but the apple appears and just turn off and turn back, there is nothing more that I recommend doing?

    With that behavior you need to take the iPhone to an Apple store genius bar for an out-of-warranty replacement.  In the US that is $269 for the iPhone 5.

  • How can i find the size and contents of playlist created by genius?

    How can i find the size and contents of i-tunes playlist created by genius?

    Have a look at this article written by the CEO of our company (MoviMED):
    http://www.qualitymag.com/articles/91010--d-imaging-enters-the-machine-vision-world?v=preview
    What is the object you are going to be making with the CNC?  Is it a cube? Is it an intricate statue?
    Are you making an object with a CNC, or just mounting a camera to a CNC to image the object?
    www.movimed.com - Custom Imaging Solutions

  • OrgChart - Group setting not respected when default hierarchy clicked

    Does anyone else get this problem in OrgChart (staged)?
    If a group is defined and set to u201CGroupu201D via the settings panel by the end user, then clicking the default root icon then the resulting hierarchy starts at the default root but without members grouped. 
    If the settings panel is opened, the group setting is still u201CGroupu201D (as expected).  Simply clicking u201CApply settingsu201D does result in the members being grouped.
    Looks like a bug to me, anyone else able to replicate?

    Hey Stephen,
    This funcitonality should work as expected.
    First, please verify that youset up groups from the admin first? If not, you should do it before doing anything from settings.
    From the setting when you select u201CGroupu201D u2013 you will see the grouping, the nodes will be grouped; when you select u201CShow Group Membersu201D u2013 the group will be expanded; when you select u201CHide Group Membersu201D u2013 the box with this group will disappear from the OrgChart.
    Once this is setup, if you are still experiencing issues, verify the CDS log, as it may be a permissions issue (ie no write or modify access for user settings).
    Hope this helps
    Carl

  • My icloud email address is included in a friend's address group set up in Gmail.  When they send an email to the group, the email never gets through to my icloud address - why?

    My icloud email address is included in a friend's address group set up in Gmail.  When they send an email to the group, the email never gets through to my icloud address - why?

    They've always been able to send to me individually - just not when my email is part of a group or even when it's just included with several other addresses added one at a time.

  • How to change the font and font size of content shown in facet "infoUser" ?

    Hi,
    How can I change the font and font size of content shown in facet "infoUser" using style class?
    I tried placing my class in my css but no success.
    Any of your help would be highly appreciated.

    Hi,
    are you using an af:outputFormatted component inside the infoUser facet?
    Brenden

  • How to sort specific column when using GROUPING SETS in SQL Server?

    If I remember correctly, in SQL Server, it is not recommended to use "ORDER BY" when there's already a GROUP BY GROUPING SETS.
    I have two columns: [UPC#] & [Description] both are varchar.
    My grouping sets is like this:
    GROUP BY
    GROUPING SETS
    ([UPC],[Description])
    I don't have 'ORDER BY' but it's automatically sorting the Description column.
    If I added a 3rd column, sum(Qty), then it doesn't sort by Description anymore. But if I added
    ORDER BY [Description]
    then the grand total of sum(Qty) will be at the first row instead of the last.
    Is there a way to sort the Description column and still let the grand total of sum(Qty) be at the last row instead?
    Thanks.

    Yes, it works.
    Thank you.
    Could you kindly explain the logic?
    I don't quite understand the "= 3 THEN 1 ELSE 0" part.
    Is the #3 mean the column index 3?
    GROUPING_ID returns a bit mask value depending on number of columns grouped in the result 
    So when you do GROUPING_ID(([UPC]),([Description]))
    it has two columns UPC and Description so bit mask will be as follows
    0 ie 00 for rows grouped by both UPC and Description fields
    1 ie 01 for rows grouped by UPC ie UPC subtotals
    2 ie 10 for rows grouped by Description ie Description subtotals
    3 ie 11 for rows not grouped by both columns ie Grand total
    see
    http://msdn.microsoft.com/en-IN/library/bb510624.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Mass update of product master (lock material record)

    Hi! Does anyone know of any program that I can use to carry out mass update of product master in SRM? I am specifically looking at locking the materials. I originally intended to use LSMW and create a recording for it. However, the recording didn't w

  • Declare @p1 variable error when creating multiple search form to show database info

    Hi, all help is incredibly appreciated, i have been trying to make a multiple filtered search form for a database in asp / vbscript. I want to be able to select from THIS database table, all info on the rows which id is BETWEEN x and x AND date is BE

  • Download error 15. Please help.

    I am running a Macbook Pro, Vers 10.7.5 Every time I try to download a CC App, it stops with an error at 42%.  Exit code: 15 - 0 fatal error(s), 2 error(s) ERROR: ASU has quit unexpectedly. ERROR: Media DB Error : 18 I have looked at many similar dis

  • Os 8.2 installed befor 8.0, how can I get 8.0 prompt to appear so I can update

    MMy ipad 3 was replaced last week , old one wouldn't download 8.0, now with my replacement ipad a software update appeared stating 8.2 was downloaded and ready to install, so I did, how do I download and install 8.0 ? It keeps indicating my software

  • OSX/OS9 Boot problems

    Tried this on the OS9 forum, but will try it here. I've happily run OS9 and OSX 10.2 for several years. I recently tried to boot into OS9 and all that popped up was a Smiley Mac folder alternating with a Question mark folder. I can't find my OS9 disk