Problem
To see the issue, run this example:
var win = Ti.UI.createWindow({ backgroundColor: '#000', modal: true, navBarHidden: true });
var view = Ti.UI.createScrollView({ backgroundColor: '#f00' });
var textField = Ti.UI.createTextField({ width: 200, height: 75 });
view.add(textField);
var toolbar = Ti.UI.createView({
backgroundColor: '#00f',
height: '15%',
//height: 100, //works with this value
bottom: 0,
layout: 'horizontal'
});
var saveButton = Ti.UI.createButton({
backgroundColor: '#444',
left: 20,
width: 150,
height: 60,
title: 'Save',
color: '#ccc'
});
toolbar.add(saveButton);
view.add(toolbar);
win.add(view);
win.open();
Text field should automatically receive focus and button should be seen on the screen. The problem is that "toolbar" view did not scroll up and it is not visible on the screen. If keyboard is lowered, "toolbar" view is visible on the bottom of the screen. If text field is again focused (by clicking on it), same issue can be seen.
Expected behavior
"toolbar" should be scrolled up. This issue does not exist if "height" property is defined as numeric value.
I did not get the actual problem. Can you attach screen shots of actual problem? I tested on Titanium Studio, build: 2.1.2.201208301612 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 when focus the textfeild, "toolbar" view becomes visible top of soft keyboard.If keyboard is lowered, "toolbar" view is visible on the bottom of the screen. If "height" property defined as percentage, "toolbar" view's size get reduced ,but when it defined as numeric value problem won't exist.Here is my observation (Check screen shot ). attachments 1.after down keyboard 2."height" defined as numeric 3."height" defined as percentage
Seems like original problem is fixed. Thanks :)
Tried with 3.2.0, toolbar is scrolled to view when soft keyboard is shown.
Closing ticket as the issue cannot be reproduced.