Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10427] MobileWeb: view updateLayout does not work correctly

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-15T17:44:47.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsMobileWeb
Labelsapi
ReporterAlexander Miller
AssigneeEric Merriman
Created2012-08-13T17:09:23.000+0000
Updated2017-06-15T17:44:47.000+0000

Description

MobileWeb View updateLayout() does not do anything on action

Works in iOS, does not work on mobileweb

Steps to reproduce:

1. copy code below into new project 2. run in mobileweb Notice that when you click the grey rectangle it does not change shape or position 3. run in iPhone emulator Notice that when you click the grey rectangle, it shrinks

CODE

var win1 = Titanium.UI.createWindow({
    backgroundColor:'#fff'
});
var view = Ti.UI.createView({
	width: 200,
	height: 300,
	backgroundColor: '#444'
});
view.startLayout();
view.top = 50;
view.left = 50;
view.finishLayout();

view.addEventListener('click', function() {
	view.updateLayout({
		top: 100,
		left: 100,
		width: 100,
		height: 150
	});
});
win1.add(view);
win1.open();

Comments

  1. Lee Morris 2017-06-15

    Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.

JSON Source