Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2816] iOS: improve log message for views with auto height 0

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-07-26T22:11:20.000+0000
Affected Version/sRelease 1.6.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reportertom quas
AssigneeNeeraj Gupta
Created2011-04-15T03:30:18.000+0000
Updated2012-07-26T22:13:54.000+0000

Description

it would be very helpful if you could offer more detail in the logs to that it's easier to locatet the source

[WARN] [object TiUIView] has an auto height value of 0, meaning this view may not be visible.

Comments

  1. Jim C. 2011-04-15

    "[WARN] [object TiUIView] has an auto height value of 0, meaning this view may not be visible."

    I have been struggling with this warning. I pulled the code from KitchenSink and placed it in my app. No matter what I do, I cant seem to eliminate the warning.

       var textView = Ti.UI.createView({
           height:'auto',
           layout:'vertical',
           left:90,
           top:10,
           bottom:10,
           right:10
       });
       
  2. Stephen Tramer 2011-04-15

    Log messages should probably include a reference to the line of JS code (where possible; doesn't our exception handler do this?)

  3. Stephen Tramer 2012-07-26

    Message is no longer printed.

JSON Source