{ "id": "166834", "key": "TIMOB-24541", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-07-26T04:05:08.000+0000", "created": "2017-03-28T18:42:31.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" }, { "id": "19275", "description": "Patch release for 6.0.x regressions or important fixes", "name": "Release 6.0.3", "archived": false, "released": true, "releaseDate": "2017-03-22" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-07-26T04:05:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "H5. Issue Description \r\n\r\nLabels that have a width of Ti.UI.FILL and a textAlign of either Titanium.UI.TEXT_ALIGNMENT_LEFT or Titanium.UI.TEXT_ALIGNMENT_RIGHT do not appear correctly after opening their containing Window while the Appcelerator app is in split-screen with another application, then expanding the Appcelerator app to full size. Rather than the text moving all the way to the left or right (depending on alignment), it moves most of the way, leaving a sizable gap between the edge of the Label's view and the start or end (depending on alignment) of the Label's text. The width itself appears to be being calculated correctly, which is easily verifiable by adding a backgroundColor to the Label, but the alignment is aligning to the wrong location and appears to be respecting some kind of padding or margin that can't be interacted with. It appears (just from comparing the visual width of the split-screen version and the post-split-screen version) that the text alignment constants may not be being recalculated properly, instead retaining the original left and right limits as defined on the Window's opening. Please see attached screenshots.\r\n\r\nThis issue does not occur if the Window is loaded in full screen, then reduced down to split-screen, and then returned to full screen. We were able to reproduce this issue both in the affected project, and in a newly created project (which was created intentionally to reproduce the issue in an as-clean-as-possible environment and which was used for the attached screenshots).\r\n\r\nh5. Steps to replicate \r\n# Download the test case from https://github.com/bbuehler-axway-support/surface-width\r\n# Run \r\n# Resize the window ", "attachment": [ { "id": "61931", "filename": "Full-Screen_after_Opening_as_Split-Screen.png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T18:18:11.000+0000", "size": 22136, "mimeType": "image/png" }, { "id": "61930", "filename": "Window_Opened_as_Full-Screen (1).png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T18:18:11.000+0000", "size": 22129, "mimeType": "image/png" }, { "id": "61932", "filename": "Window_Opened_as_Split-Screen.png", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T18:18:20.000+0000", "size": 1882833, "mimeType": "image/png" } ], "flagged": false, "summary": "TextAlign Mishandled on Win Surface on Labels with FILL Width", "creator": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 8.1 Surface Device \r\nCLI 6.1.0", "comment": { "comments": [ { "id": "416651", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was not able to reproduce this on my Windows 8.1 PC. I don't see margin or padding on the edge of the label text. FYI I would set Label's background color green other than \"white\" for testing, because Window color is \"white\" too in your example. \r\n\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\",\r\n\tlayout: \"vertical\"\r\n}\r\n\"#width_fill_label\": {\r\n\tleft: 0,\r\n\ttextAlign: Titanium.UI.TEXT_ALIGNMENT_LEFT,\r\n\twidth: Titanium.UI.FILL,\r\n\tcolor: 'green',\r\n\tbackgroundColor: 'purple',\r\n\theight: Ti.UI.SIZE\r\n}\r\n{code}\r\n\r\nAlso, just in case would you try latest nightly build? {{appc ti sdk install --branch master 6.1.0.v20170401095755}}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-04-03T11:48:40.000+0000", "updated": "2017-04-03T11:48:55.000+0000" }, { "id": "418211", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was able to verify the issue on 6.0.3.GA but was no longer able to reproduce on SDK Version 6.1.0.v20170421082637 ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-27T20:45:55.000+0000", "updated": "2017-04-27T21:06:34.000+0000" }, { "id": "439489", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this as we can't reproduce this on the latest release. Feel free to create new ticket if this is still the case.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-07-26T04:05:08.000+0000", "updated": "2018-07-26T04:05:08.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }