dos2unix all text files
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / ChoiceComboBox.as
index ed1a372b2c7ed3d7338a31eef12c9a35428fde68..3139cad6fb20fc7339b3af6abdce1b7a7d426d61 100644 (file)
@@ -36,16 +36,16 @@ package net.systemeD.potlatch2.mapfeatures.editors {
             if ( textInputReplacement ) {
                 IDataRenderer(textInputReplacement).data = selectedItem;
 
-                var arrowWidth:Number = getStyle("arrowButtonWidth");\r
-                var itemHeight:Number = textInputReplacement.getExplicitOrMeasuredHeight();\r
-                var itemWidth:Number = textInputReplacement.getExplicitOrMeasuredWidth();\r
-\r
-                if (isNaN(arrowWidth))\r
-                    arrowWidth = 0;\r
+                var arrowWidth:Number = getStyle("arrowButtonWidth");
+                var itemHeight:Number = textInputReplacement.getExplicitOrMeasuredHeight();
+                var itemWidth:Number = textInputReplacement.getExplicitOrMeasuredWidth();
+
+                if (isNaN(arrowWidth))
+                    arrowWidth = 0;
 
                 var bm:EdgeMetrics = borderMetrics;
 
-                textInputReplacement.setActualSize(unscaledWidth - arrowWidth, itemHeight);\r
+                textInputReplacement.setActualSize(unscaledWidth - arrowWidth, itemHeight);
                 textInputReplacement.move(bm.left, bm.top);
             }
         }
@@ -57,21 +57,21 @@ package net.systemeD.potlatch2.mapfeatures.editors {
                 IDataRenderer(textInputReplacement).data = selectedItem;
                 var prefSize:Object = calculatePreferredSizeFromData(collection.length);
 
-                var arrowWidth:Number = getStyle("arrowButtonWidth");\r
-                var itemHeight:Number = textInputReplacement.getExplicitOrMeasuredHeight();\r
-                var itemWidth:Number = textInputReplacement.getExplicitOrMeasuredWidth();\r
-\r
-                if (isNaN(arrowWidth))\r
-                    arrowWidth = 0;\r
+                var arrowWidth:Number = getStyle("arrowButtonWidth");
+                var itemHeight:Number = textInputReplacement.getExplicitOrMeasuredHeight();
+                var itemWidth:Number = textInputReplacement.getExplicitOrMeasuredWidth();
+
+                if (isNaN(arrowWidth))
+                    arrowWidth = 0;
 
                 var bm:EdgeMetrics = borderMetrics;
-                itemHeight += bm.top + bm.bottom;\r
+                itemHeight += bm.top + bm.bottom;
                 itemWidth += bm.left + bm.right + arrowWidth + 8;
                 prefSize.height += bm.top + bm.bottom;
-                prefSize.width += bm.left + bm.right + arrowWidth + 8;\r
+                prefSize.width += bm.left + bm.right + arrowWidth + 8;
 
-                measuredMinHeight = measuredHeight = Math.max(prefSize.height, itemHeight);\r
-                measuredMinWidth = measuredWidth = Math.max(prefSize.width, itemWidth);\r
+                measuredMinHeight = measuredHeight = Math.max(prefSize.height, itemHeight);
+                measuredMinWidth = measuredWidth = Math.max(prefSize.width, itemWidth);
             }
         }
 
@@ -87,8 +87,8 @@ package net.systemeD.potlatch2.mapfeatures.editors {
                 IDataRenderer(test).data = collection[i];
                 test.validateDisplayList();
                 test.validateSize(true);
-                maxWidth = Math.max(maxWidth, test.getExplicitOrMeasuredWidth());\r
-                maxHeight = Math.max(maxHeight, test.getExplicitOrMeasuredHeight());\r
+                maxWidth = Math.max(maxWidth, test.getExplicitOrMeasuredWidth());
+                maxHeight = Math.max(maxHeight, test.getExplicitOrMeasuredHeight());
             }
             removeChild(test);
             return {width: maxWidth, height: maxHeight};