Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13675] LiveView - Alloy - iOS: topbar rightNavButton disappears when applying changes if using models

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-09-30T15:34:28.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 JS, 2013 Sprint 20, 2013 Sprint 20 Tooling, Release 3.2.0
ComponentsLiveView
Labelsqe-closed-3.2.0
ReporterFederico Casali
AssigneeChristian Sullivan
Created2013-04-25T20:33:57.000+0000
Updated2013-12-18T09:52:29.000+0000

Description

Problem description

Use the https://github.com/appcelerator/alloy/tree/master/test/apps/models/binding_tableview Alloy sample (attached here too) Changing code and having the App updated with LiveView, the topbar 'rightNavButton' disappears. Attaching log. Using the following sample code, button is not disappearing when modifying objects in the .xml or .js files

index.xml

<Alloy>
	<TabGroup>
		<Tab id='tab1' title='Tab 1'>
			<Window id='mainwin' title='main'>
				<TableView id="tableView">
					<TableViewRow id="row">
						<Label class="rowTitle" text="pippo"/>
					</TableViewRow>
				</TableView>
			</Window>
		</Tab>
	</TabGroup>
</Alloy>

index.js

var button = Ti.UI.createButton({
		title: 'button'
	});
	$.mainwin.rightNavButton = button;

$.index.open();

Attachments

FileDateSize
binding_tableview.zip2013-04-29T22:24:07.000+000025861
liveview_alloyModel.log2013-04-25T20:38:48.000+000016885

Comments

  1. Federico Casali 2013-06-13

    Still reproducible Environment: Titanium SDK .1.1.v20130613121914 Appcelerator Studio 3.1.1.201306121633 Code Processor 1.0.1-cr4 Alloy 1.1.3-cr Node 0.8.22 Reopening.
  2. Tony Lukasavage 2013-06-14

    Here's an example using the markup instead:
       <Alloy>
       	<TabGroup>
       		<Tab id='tab1' title='Tab 1'>
       			<Window id='mainwin' title='main'>
                                       <RightNavButton>
                                           <Button>button</Button>
                                       </RightNavButton>
       				<TableView id="tableView">
       					<TableViewRow id="row">
       						<Label class="rowTitle" text="pippo"/>
       					</TableViewRow>
       				</TableView>
       			</Window>
       		</Tab>
       	</TabGroup>
       </Alloy>
       
  3. Christian Sullivan 2013-09-30

    resolved when tested using liveview 0.1.34
  4. Neha Mittal 2013-12-18

    Verified fix with environment: Appcelerator Studio: 3.2.0.201312171913 SDK: 3.2.0.v20131217190633 alloy: 1.3.0-cr2 acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Liveview: 1.0.1 Mac OSX 10.9 Mavericks Device: iPhone 5C(v7.0.4) The topbar ‘rightNavButton' does not disappears.Hence closing the issue.

JSON Source