         
         useChromeColor = false;
         
-        switch (targetDensity)
+        switch (authorDensity)
         {
-            case MobileSkin.PPI240:
+            case DeviceDensity.PPI_240:
             {
                 borderClass = spark.skins.mobile240.assets.TextInput_border;
                 layoutCornerEllipseSize = 16;


import flash.events.Event;

import spark.components.TextInput;
import spark.skins.mobile.supportClasses.MobileSkin;
import spark.skins.mobile.supportClasses.TextSkinBase;
import spark.skins.mobile160.assets.TextInput_border;
import spark.skins.mobile240.assets.TextInput_border;

            textDisplay.text = "Wj";
            textDisplay.commitStyles();
            
            // FIXME (jasonsj) use measuredHeight
            // textHeight = textDisplay.measuredHeight;
            textHeight = textDisplay.textHeight;
            textDisplay.text = oldText;
        }
