Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23718] Mobile Web: ScrollView does not resize on Portrait to Landscape.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-26T23:04:16.000+0000
Affected Version/sRelease 5.3.1
Fix Version/sn/a
ComponentsMobileWeb
LabelsMobileWeb, scrollView
ReporterMotiur Rahman
AssigneeUnknown
Created2016-08-03T14:47:39.000+0000
Updated2018-04-04T23:20:39.000+0000

Description

description

In Mobile Web, the ScrollView does not resize properly when taking the device from portrait to landscape.

Steps:

1. Open Project 2. Run using Mobile Web Preview in Browser 3. With iOS Simulator, view the build in Safari 4. In the UI, just a view will show in Portrait. 5. Rotate the iOS Simulator Right. 6. Problem appears, view is not re-positioned or centered.

Test case

var win = Ti.UI.createWindow({
	backgroundColor : 'white',
	title : 'ScrollView Demo'
});

var scrollView = Ti.UI.createScrollView({
	showVerticalScrollIndicator : true,
	showHorizontalScrollIndicator : true,
	height : '80%',
	width : '80%'
});
var view = Ti.UI.createView({
	backgroundColor : '#336699',
	borderRadius : 10,
	top : 10,
	height : 500,
	width : Ti.UI.FILL
});

var view2 = Ti.UI.createView({
	width : 100,
	height : 100,
	backgroundColor : 'red'
});

view.add(view2);

scrollView.add(view);
win.add(scrollView);
win.open();

Thanks

Comments

  1. Lee Morris 2017-06-26

    Marking ticket as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source