Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-422] HBox and VBox components for mobile

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-12-05T05:15:46.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsAndroid
Labelsandroid, ios, layout, scrub-invalid
ReporterKevin Whinnery
AssigneeDon Thorp
Created2011-04-15T02:29:04.000+0000
Updated2011-12-05T05:15:46.000+0000

Description

Marshall and I were talking about this last week and I thought I would throw it in a ticket. Absolute positioning for an entire app may quickly grow a bit onerous as the complexity of the UI increases (or on larger screens, like iPad). It would make a lot of sense to have some kind of auto-aligning component to arrange views horizontally or vertically. Pseudocode for such a component would be:

var vbox = Titanium.UI.createVerticalBox({width:'100%', height:'100%',align:'center'});
vbox.add(view1);
vbox.add(view2);
vbox.add(view3); //all three views are aligned vertically and centered within the vbox view
Titanium.UI.currentWindow.add(vbox);

Comments

  1. kevinwhinnery 2011-04-15

    These components are making it into the sdk with vertical and horizontal layout options - Android still needs horizontal layouts.

  2. Stephen Tramer 2011-04-15

    Yet another placeholder for layout. We really need to manage these.

  3. Nikolai Derzhak 2011-04-15

    rollback wrong update

JSON Source