appcelerator-archive / titanium_mobile_blackberry

Other
29 stars 26 forks source link

Layout Issues #33

Closed adesugbaa closed 11 years ago

adesugbaa commented 11 years ago

If you have a window with a title, this becomes scrollable (title view goes offscreen) if there is an overflow as the usecase below shows:

var win1 = Titanium.UI.createWindow({  
   backgroundColor:'#fff',
   title: 'Demo',
   layout: 'vertical'
});

var createLabel = function() {
    var a = Titanium.UI.createLabel({
       color:'#999',
           text:'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer blandit nibh magna, eu ultrices est.',
       font:{fontSize:7,fontFamily:'Helvetica Neue'},
       width: Ti.UI.SIZE,
       height: 'auto',
    });

    return a;
}

for (var i=0; i < 20; i++)
{
    win1.add(createLabel());
}

win1.open();

Changing the height from 'auto' to Ti.UI.SIZE results in just white space (the equivalent of maybe 2 or 3 labels) being rendered. Switching to Ti.UI.FILL results in similar white space, but text for one line showing.

Applying a LEFT and RIGHT property setting results in only LEFT being applied. Similarly a TOP and BOTTOM results in only the TOP being applied

mtnlife999 commented 11 years ago

Hi Ayo, I'm working on Ti.UI.SIZE and the LEFT, RIGHT, TOP, BOTTOM issue over the next couple days. I'll let you know when I have those working.

mtnlife999 commented 11 years ago

I arrived late last night and I'm finishing off my presentation, so have not had a chance to check things out much but the turn out is fantastic and the energy of the attendees is super optimistic. There is still the concern about getting apps over to the platform but that's what we are about;)

adesugbaa commented 11 years ago

Cool. Is there an issue with the changes I made to the title bar and label?

Sent from my iPhone

On May 14, 2013, at 13:06, Russ McMahon notifications@github.com wrote:

I arrived late last night and I'm finishing off my presentation, so have not had a chance to check things out much but the turn out is fantastic and the energy of the attendees is super optimistic. There is still the concern about getting apps over to the platform but that's what we are about;)

— Reply to this email directly or view it on GitHub.

mtnlife999 commented 11 years ago

No, just me being slow. I'm looking at it now.

adesugbaa commented 11 years ago

Ok.

Sent from my iPhone

On May 14, 2013, at 13:22, Russ McMahon notifications@github.com wrote:

No, just me being slow. I'm looking at it now.

— Reply to this email directly or view it on GitHub.

mtnlife999 commented 11 years ago

The problem with Ti.UI.SIZE has been fixed.