Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24819] Windows: Uncaught Error: undefined when a label is wrapped in a view that has a fixed width

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-06-22T16:16:29.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.1.2
ComponentsWindows
Labelsregression
ReporterVictor Vazquez Montero
AssigneeKota Iguchi
Created2017-06-14T16:43:50.000+0000
Updated2017-08-03T21:39:47.000+0000

Description

description

Uncaught Error: undefined happens when a Label is wrapped in a View that has a fixed width. - The wrapped Label has left: 0 - The wrapped Label has a text value set. Having a Label with a left value of 0, a text value set and that it is contained in a View whose width is fixed (i.e. NOT Ti.UI.SIZE nor Ti.UI.FILL), will make the error to pop when the app launches. If line 14 gets commented out from the index.tss file, the error will go away.

error message

[ERROR] ----- Titanium Javascript Runtime Error ----- [ERROR] In undefined: undefined,undefined [ERROR] Message: Uncaught Error: undefined

Sample Code

[Sample Code](https://propelics.box.com/s/iyfl1ys9ib79fkgxvd8utwjt2vlo3q53)

Comments

  1. Kota Iguchi 2017-06-15

    Confirmed that this issue is fixed by TIMOB-24814. We can close this when TIMOB-24814 is resolved.
  2. Kota Iguchi 2017-06-20

    This issue has been addressed in [PR1014](https://github.com/appcelerator/titanium_mobile_windows/pull/1014).
  3. Kota Iguchi 2017-07-11

    6.1.2 backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1038
  4. Ewan Harris 2017-07-14

    6.1.2 backport FR passed and merged
  5. Ewan Harris 2017-07-21

    Verified fix in 6.1.2.v20170720023139. Closing ticket

JSON Source