Flex 4 spark text area which expands to the correct height

Whats the best way to get a simple <s:RichText area which expands to the correct height of the text property?

    <s:RichText text=" test test test test test test test test test test test testtest. test test test test test test test test test test test testtest. test test test test test test test test test test test testtest. test test test test test test test test test test test testtest.test test test test test test test test test test test testtest END." width="400" />
works for me.  Don't specify a height and it will measure the text.
BTW, while setting s:TextArea heightInLines to NaN will get it to auto-size the height that is not the intended usuage.  You should use s:RichEditableText which does support auto-sizing in either the width or height dimension if it is not specified.

Similar Messages

  • TS4006 I have several iphones on  find my iphone. How do I know which one is the correct iphone. None of them are labeled Iphone4 or 5 etc.

    I just had my iphone stolen from me. In the past I have always set up my phones an ipads on to the find my iphone service. I have never deleted them from the find my iphone account and now I have 3 iphones showing and 2 ipads. How can you tell the difference when none of them are labeled as Iphone 4, iphone 4s, iphone 5, etc. No dates are shown as when purchased so it I can't figure out which one is the correct iphone to put on lost mode and send message to.

    Deleting on one device does not affect another device.
    You can delete the App's on the iPhone and nothing will happen to the ones on the iPad.
    1.  You don't need to.
    2.  Settings->Cellular->"Use Cellular Data For" will show the data usage for each App since the last statistics reset
    3.  Settings->General->Background App Refresh Will show which Apps are allowed to get data in the background
    4.  It restricts it to Wifi.  If the App requires internet access and Data is turned off, it will have to wait until the device is connected to a wifi network.
    5.  Nope, You just use up battery since the BT radio will continuously look for nearby BT devices.
    6.  The Personal Hotspot uses your cellular internet connection from your phone or other cellular device; whether you consider that secure or not I cannot say.  It also depends on what you are doing while connected to the Hotel's wifi. I would not do online banking while on vacation though.

  • I have an iPhone, an iPad, 2 iPad mini's and 2 iPod Touch's that all share the same apple id.  I want to separate the iPhone so that texts are not seen on the other devices but I still want them to have the iMessage ability.  How do I do that?

    I have an iPhone, an iPad, 2 iPad mini's and 2 iPod Touch's that all share the same apple id.  I want to separate the iPhone so that texts are not seen on the other devices but I still want them to have the iMessage ability.  How do I do that?

    Not sure if you can have 2 Apple ids contact Apple.com/I'd You may to set IPhone up as new with a different Apple ID & password. Bsydd uk

  • Modify an text area on selecting from the cfselect

    Hi,
    New to CF.
    How to modify an text area on selecting from the cfselect?
    In fact, geting what user selected and displaying in the text
    area.
    Thanks.

    solved.
    <script type="text/javascript">
    function addText(text){
    document.getElementById('idofthetextarea').value = text;
    </script>
    <select name="combo" id="combo"
    onchange="JavaScript:addText(combo.value)">
    hope it helps for others.
    Thanks for your support. Really appreciate it.
    "Adrian C." <[email protected]> wrote in message
    news:ejvmk2$b5q$[email protected]..
    > Hi,
    >
    > New to CF.
    >
    > How to modify an text area on selecting from the
    cfselect?
    > In fact, geting what user selected and displaying in the
    text area.
    > Thanks.
    >

  • Finding which source is the correct one for a compiled class file

    I have a compiled class (myclass.class) and 3 source files for it (myclass.java). Is there any method, utility, or software that will let me find which source file is the correct one?
    I have about a 100 of these classes which have a lot of copies of the source and we don't know which source is the correct one. The compiled classes are deployed and working and cannot be replaced.
    Thank you for your time!

    Thank you all for your suggestions but..
    1. Recompiling the existing sources and checksum the compiled classes is not a full solution. In addition to finding the version of the compiler that was used and the version of the JDK libraries that were used, I do not know which switches were used when the class was compiled (e.g. -g will output debug info, etc.)
    2. Decompiling: I could not find a good enough decompiler I tried jad which failed with some of the classes; I tries JDec which I did not feel I can fully trust the output (format was less accurate than jad). I tried jode which is limited to java 1.3.
    3. Versioning: our project now is actually to move all the source to Subversion.
    If there is a better decompiler or a way to ensure that a given source file matches the compiled class, please let me know.
    Thanks in advance!

  • When I type in a website address I get another website which is not the correct website

    When I type in a website address, I get another website which is not the correct website. I have never had this happen before

    Do a malware check with some malware scanning programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also:
    * "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • HT1695 Both my iPod and my MacBookPro connect with my home Wi-Fi but my iPad will not even after entering the passcode. I have tried Full shutdown  and tried other Wi-Fi's for which I had the correct passcode. My iPad would not connect. Any suggestions?

    Both my iPod and my MacBookPro connect with my home Wi-Fi but my iPad will not even after entering the passcode. I have tried Full shutdown  and tried other Wi-Fi's for which I had the correct passcode. My iPad would not connect. Any suggestions?

    Hi! I am having the same problem. What's odd is that a few days ago- the ipad was connecting to the network fine. No changes made. Other devices can connect to this network. I have also been able to connect my ipad to other networks.
    I have reset all network settings, reset my ipad, reset the router, hard stop reboot, turn on/off wifi connection. what's interesting is that when i click the arrow next to the network i am trying to log onto- the ip address, router, and dns numbers come up automatically and the router number does not fill in (also- this process takes a long time- at least 5 minutes).
    any thoughts?

  • Which event dispatched after text selection done on spark text area in Apple iPad using Adobe Flex 4

    I need to know which event triggered after text selection done in Apple iPad. This way i have done in desktop air app code (mouse events)
    protected function txtEditor_mouseUpHandler(event:MouseEvent):void
                if(txtEditor.selectionAnchorPosition != txtEditor.selectionActivePosition){
                    showNoteToolBar(event);
                    txtEditor.focusEnabled = true;
                    txtEditor.setFocus();
    But in Apple iPad how to achieve through "Touch Event" ? And also i need how to hide all context menu on Spaek TextArea?. Why Touch.End event is not fired after place cursor on text area ?
    Please help me !

    Ok, so I finally got it working but this is not ideal at all. Adobe really needs to give us some direction on how to properly deal with font embedding and TLF now that the release build breaks all functionality with loading runtime fonts and TLF.
    Problem:
    I am embedding collections of fonts (faces) into single family classes. Each individual face is registered with Font.registerFont(). I need to do this because I have to have mixed fonts within text flows - at least according to Alex H's recent blog post.
    Fonts do not display in TLF without doing the following:
    1. GlobalSettings.resolveFontLookupFunction = null;
    2. editor.textFlow.flowComposer.swfContext = ISWFContext(this.getFontContext("AnyFamilyNameFromAnyFontEmbedded", false, false, FontLookup.EMBEDDED_CFF));
    3. Instead of #2, use editor.textFlow.invalidateAllFormats();
    Either #2 or #3 need to be performed. If I have a spark richEditableText control in MXML with defined familes from the loaded fonts. I even tried placing the control into a separate state so it wasn't created until after the fonts were loaded... I still needed to invalidate the formats or set the context.
    The "AnyFamilyNameFromAnyFontEmbedded" does not need to be all of the embedded family names. It only needs to be one of them. Once one is used, all embedded fonts work. Also, I have to use the internal namespace to even get access to getFontContext, another oddity that, in my humble opinion, should never be necessary to create mixed style TLF content.
    My questions are then:
    1. Why am I required to use ISWFContext if I am using Font.registerFont()?
    2. Why is GlobalSettings.resolveFontLookupFunction = null; also required for this to work?
    3. What is the recommended workflow to embed fonts from multiple SWF files into the release build and have it work without having to jump through all these hoops?

  • Possible to highlight a row in text area which in turn would fire an event?

    I'm making a GUI of which the main portion consists of a large text area. The text area would list problems that our company is experiencing - each row would represent a problem. Each row would give a problem ID and a description of the problem. I want to make it so that when the user clicks on a row (a problem), another dialog box would open which would present possible solutions to the user regarding the problem at hand. How would I write code to highlight a row which in turn would fire an event opening up another box?
    I thought about going about this another way - have a drop down (jcombobox) integrated into each row which the user can choose from but I'm not sure if you can insert a drop down into a text area (and neatly into a row at that!) so I think the former way may be preferable.
    Thanks in advance.
    Regards,
    Paul

    If a java application is required (as opposed to a web-based solution using HTML's linking capabilities) the best approach might be a JList implementation. It could go something like this...
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ListFrame extends JFrame
       public ListFrame()
          super("JList example frame");
          getContentPane().add(getListPanel(), BorderLayout.CENTER);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          pack();
          setVisible(true);
       private Component getListPanel()
          JPanel panel = new JPanel(new BorderLayout());
          final JList list = new JList(new Object[]
             "List option 1...",
             "List option 2...",
             "List option 3..."
          // This will make sure only one item can be checked at a time.
          list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
          // Handle the selection here.
          list.addListSelectionListener(new ListSelectionListener()
             public void valueChanged(ListSelectionEvent e)
                // No need to go on if this was a deselection.
                if (e.getValueIsAdjusting() || list.isSelectionEmpty())
                   return;
                // This is where you would have to convert the value that's selected into whatever
                // it is you want to display to the user.  This example just puts the text of the
                // selected item into a messagebox.
                Object selectedItem = list.getSelectedValue();
                JOptionPane.showMessageDialog(ListFrame.this, selectedItem);
          list.setVisibleRowCount(5);
          // The scrollpane will control the scrolling of the list (so you can have as many options
          // as you want).  Standard JScrollPane functionalities can be used to control various
          // visual aspects of the list.     
          JScrollPane scroll = new JScrollPane(list);
          scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          panel.add(scroll, BorderLayout.CENTER);
          return panel;
       public static void main(String[] args)
          new ListFrame();
    }I know this is quite after-the-fact, but I hope it helps (if you hadn't already solved the problem :) )

  • Issue with rightclicking in a text area which uses Squiggly

    Hi,
    I have found an issue with using squiggly in a TextArea component.
    I was able to simulate the same in the demo url . http://labs.adobe.com/technologies/squiggly/demo/#
    The issue is when I enter a random text like "aaaaaaaaaaaaaaaaaaaaaaaaaaaa" and then when I do a right click on the text area,
    I get an exception as shown below.
    TypeError: Error #1010: A term is undefined and has no  properties.
    at  com.adobe.linguistics.spelling.core::SuggestionManager/nsuggest()[C:\squiggly\esg\squiggl y\main\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\core\SuggestionManager.as:20 1]
    at  com.adobe.linguistics.spelling.core::SquigglyEngine/suggest()[C:\squiggly\esg\squiggly\ma in\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\core\SquigglyEngine.as:285]
    at  com.adobe.linguistics.spelling::SpellChecker/getSuggestions()[C:\squiggly\esg\squiggly\ma in\AdobeSpellingEngine\src\com\adobe\linguistics\spelling\SpellChecker.as:145]
    at  com.adobe.linguistics.spelling.ui::HaloWordProcessor/getSuggestionsAtPoint()[C:\squiggly\ esg\squiggly\main\AdobeSpellingUI\src\com\adobe\linguistics\spelling\ui\HaloWordProcessor. as:49]
    at  com.adobe.linguistics.spelling.ui::SpellingContextMenu/handleContextMenuSelect()[C:\squig gly\esg\squiggly\main\AdobeSpellingUI\src\com\adobe\linguistics\spelling\ui\SpellingContex tMenu.as:124]
    So is there any fix for the above error or a workaround for this.
    This has been filed as bug in an application I am working on.
    regards,
    Anup Francis

    Thank you for reporting this issue.
    I was unable to reproduce this problem under the following configurations:
    Mac OSX 10.6.3, Flash 10.0.42.34, Firefox 3.6.3
    Windows XP, Flash 10.0.45.2, IE 8.0.6001
    Windows XP, Flash 10.1.53.21, Firefox 3.6.3
    Could you provide more details about the software configurations you have that reproduces this problem?
    Also, is there a specific location you click in the TextArea?  On the word?  On white space?
    Thanks,
    - Bruce, Adobe

  • Sequence quiz--how to indicate which answer is the correct one

    Probably another glaringly obvious answer, but I can't find instructions anywhere online to follow.
    I've succeeded in making the questions and answers, but it is arbitrarily deciding on its own which are right and which are wrong. I've searched the panels, but am missing the obvious. Help?

    The order of the Question Answer captions as shown on the slide in Edit mode is the correct order as far as Captivate is concerned.  So write the text in these captions to show the order that should be marked as correct.

  • How many ways are there to get the Width/Height of an image ?

    I am currently using the following code to get the width and hight of an image :
    BufferedImage Buffered_Image=ImageIO.read(new File(Image_Path));
    int Image_Width=Buffered_Image.getWidth();
    int Image_Height=Buffered_Image.getHeight();I don't need to get the image (*.jpg, *.gif, *.png), just want to know it's dimensions. I wonder how many other ways are available to do the same thing in a Java application ?
    Frank

    Ni_Min wrote:
    That's what I thought. I am asking because I hit a wall and am trying to find a different approach.Yeah, if you only have one file type you can probably write the code to read the header in 20 min.
    I packed my programs into an executable Jar file which I can run and access images on my C:\ drive, everything worked fine until I tried to experiment with something new. I know that I can force JVM to pre-load all my java classes just after it starts, so I deleted the jar right after the program pre-loaded all my classes and tried to see if it would work, but now I get a null pointer error when it tried to get the width/height of an existing image, because ImageIO.read return null. ( The same image is still on my C:\ drive )Sounds like a strange thing you're doing here. What's the point of this?
    So I wonder why it makes a difference after I deleted the jar, what was the problem ( or do I need to pre-load another class related to ImageIO.read ? ), and maybe if I use something else other than the ImageIO.read to get the width/height, I can bypass the problem.I dunno why you need to do this preload stuff and/or delete anything. I'd say leave the JVM and the app alone if possible.

  • ITunes 10.5.0.142 - Which one is the correct music folder?

    Hi Apple,
    You are driving me nuts with iTunes. Everytime I update my iTunes my music looses the link to the actual music files. Now again for the 10th time with iTunes 10.5.
    My internal harddisk is way too small for all my music, movies, podcasts etc. so I have to have everything on an external harddisk. In iTunes I point my library to this harddisk.
    Everytime I update iTunes you apparently are coming up with a new structure so I keep loosing the reference and you also seems to force iTunes to only look on the C drive. Please STOP! It's a really big hassle and I waste so many hours on reorganising my music librrary. I already spent hours on playlists, ratings, musci covers etc. so don't make it worse than it is and please let me not loose all that work on my precious music.
    So please once and for all explain to me how to not to loose my reference to my external harddisk and also explain to me in which folder you would now like my music to be in?
    \My Music\iTunes\ or
    \My Music\iTunes\iTunes Music\ or
    \My Music\iTunes\iTunes Music\Music or
    somewhere else??
    Please also explain to me the correct content of the other folders? Where should my music covers be, iTunes Music Library.xml, iTunes Library.itl, iTunes Library Extras.itdb etc etc.
    Thanks a lot for helping a man going into panic and frustration!
    Have a great weekend and keep working on that iPhone 5.
    Cheers, Peter Høgfeldt

    I guess I should also note that sometimes it just crashes... just because.
    So, get to fixin'.
    No, seriously, fix it.

  • OS 10.1MR - 10.1.0.416​0 or .4181. Which one is the correct one?

    Hi - yesterday I received the update notification that a new OS version *.4160 is available from my carrier (Optus Australia).
    I downloaded and installed but but aside from the white calendar (which I hate) and the Unread shortcut in the hub, I didn't see any changes.
    Today, I got again an update notification - that 10.1.0.4181 is available.
    Why do I receive so shortly two updates? And what has changed from *.4160 to *.4181?
    Right now, I don't see the need to upgrade the Q10 as the update seems more focussed on the Z10.
    Any thoughts? Comments?
    Thanks

    Hey allwi,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Both of these versions are the correct updates for Optus Australia.  The latest version is 10.1.0.4181.  There could of been minor fixes or customizations options, each network service provider has their own unique BlackBerry device software.
    This blog post will show you what's new in 10.1 overall: http://blogs.blackberry.com/2013/07/a-new-blackber​ry-10-update/
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • I have iTunes 10.5 and a 4g iPod touch. WHen I upgraded to 5.01, my photos are not all in the correct folders. Any ideas?

    When I load my photos on my 4g ipod touch with iOS 5.01, the photos are there but not all in the correct folders. How can I correct that?

    I spent last week looking for a solution to that little yellow "!" needle haystack....
    It is probably buried where nothing can touch or change it other than what I resorted to and would have saved time, clean install after I made sure to have two backup sets: Windows Easy Transfer plus Paragon clone OS and partitions to drive. Had to spend a full day reinstalling, updates, etc. Careful not to bring back any prefs or data that might be corrupt or wrong.
    10.5 and iOS 5 on new iPod 4G works much better though and as they should and no issues like I had with AMS or other services or needing to restart first before launching iTunes.

Maybe you are looking for

  • Task Reassignment Issue in OIM9.

    Guys, When I am reassign a task to some user , its not triggering any email in my QA Env , but its working fine in Dev Env. Also , I need to check user @time of reassignment , i have some criterion for reassignment. how do i deifne that criterion for

  • Excise Default - Change TAXINJ for AT1

    Hi All,     I like to know any Impact will be there if in Excise Default - Change Tax Proc. TAXINJ for AT1 instated of JA1S i have Placed J1CV for S&H Cess for the purpose has to be taken in J1IG for Sale Depot as it was not captured properly. Replac

  • Oracle Argus Study material

    Hi All, I am newbie to Oracle Argus. I would like to become Oracle Argus developer. Argus was not installed in my computer to get the comlete informationa bout Argus. Can any one please share the links for Complete reference for Oracle Argus. Thanks,

  • Screen saver defaults to Nat Geographic photos

    Have upgraded to Yosemite and chosen my personal iPhoto folder as the source for the screensaver, but it keeps defaulting to the built in National Geographic photos. Any ideas?

  • Is it possible to create informatica visio template for sales force soruce and target objects.

    Hello Anmol, I have a similar requirement where I need mass generation of mappings using Salesforce Objects as a source. As per your instruction, I used cloud version of Mapping Architect of Vision and create a template with normal source and target