Commit 0acaea809106a47c619ef1c91781f48769b095c5

Authored by unknown
1 parent ac9fca59

textarea text issue

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -3602,7 +3602,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3602 3602 for (var i = 0; i <= $rootScope.resieTextArray.length - 1; i++) {
3603 3603 if($rootScope.resieTextArray[i].layerName == CangedTextAreaName)
3604 3604 {
3605   - if (/(\r\n)/gm.test($rootScope.resieTextArray[i].Rect_Text) || /\s/.test($rootScope.resieTextArray[i].Rect_Text)) {
  3605 + if (/(\r\n)/gm.test($rootScope.resieTextArray[i].Rect_Text) || (/\s/.test($rootScope.resieTextArray[i].Rect_Text) != true)) {
3606 3606 textAftrResize = ($rootScope.resieTextArray[i].Rect_Text).replace(/(\r\n)/gm, "");
3607 3607 for (var i = 0;i <= $rootScope.textWidth.length - 1; i++) {
3608 3608 if ($rootScope.textWidth[i].id == layer.name) {
... ... @@ -4181,7 +4181,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4181 4181 var textAftrResize;
4182 4182 for (var i = 0; i <= $rootScope.duplicateResizeTextArray.length - 1; i++) {
4183 4183 if ($rootScope.duplicateResizeTextArray[i].layerName == CangedTextAreaName) {
4184   - if (/(\r\n)/gm.test($rootScope.duplicateResizeTextArray[i].Rect_Text) || /\s/.test($rootScope.duplicateResizeTextArray[i].Rect_Text)) {
  4184 + if (/(\r\n)/gm.test($rootScope.duplicateResizeTextArray[i].Rect_Text) || (/\s/.test($rootScope.duplicateResizeTextArray[i].Rect_Text != true))) {
4185 4185 textAftrResize = ($rootScope.duplicateResizeTextArray[i].Rect_Text).replace(/(\r\n)/gm, "");
4186 4186 for (var i = 0; i <= $rootScope.duplicatetextWidth.length - 1; i++) {
4187 4187 if ($rootScope.duplicatetextWidth[i].id == layer.name) {
... ...