![]() |
|
| FORUM | BLOG | CONTACT | |
| Flex 3 Resizing TextArea Height Based on TextHeight - posted: 2008-02-27 16:32:52 Well, this one just about killed me this morning. Well, it wasn't actually that bad, but it's one of those obscure little issues that will drive you nuts. So, how do you resize a TextArea control mx.controls.TextArea based on the container Text Area Height? Pretty easy really once you use the callLater function. This is a throwback solution from the Flash days where the mantra, "if all else fails, wait a frame" works again. private function resizeTextArea():void { captionTxt.height = captionTxt.textHeight + 10; } id="captionTxt" selectable="false" horizontalScrollPolicy="off" verticalScrollPolicy="off" resizeEffect="Resize" text="{yourBoundTextVariable}" valueCommit="callLater(resizeTextArea)"/> I also threw in a nice resizeEffect so that it happens all smooth and sexy. word. |
| Changing the default page on an apache webserver with .htaccess - posted: 2008-02-26 23:17:39 This is a pretty quick post and I've done this a long time ago but ended up having to look this up when trying to help my mom post her iWEB built site to a 1and1 super cheap hosting account. When you export your iweb site to a folder and upload to the server via FTP you may have a home page that's named something like "Welcome.html". To get that page to load by default, you just need to create a text file and upload to the root of your website with the following line added: DirectoryIndex index.html Welcome.html Upload and check it out. |
![]() |