Issue
When we hide an show view with vertical layout it redraw the view with layout absolute.
Steps to reproduce
1. Click the window (yellow area)
2. Watch out the view
Expected behavior
View being shown as per it's layout settings
Repro sequence
- app.js
var win = Ti.UI.createWindow({
backgroundColor:'yellow',
});
win.addEventListener('click', function(){
view.hide();
setTimeout(function(){
view.show();
},3000);
});
var view = Ti.UI.createView({
layout:'vertical',
backgroundColor:'red',
height:'50%'
});
win.add(view);
var left = Ti.UI.createLabel({
title:'Left',
backgroundColor:'blue',
color:'black',
width:'50%',
height:'100%'
});
var right = Ti.UI.createLabel({
title:'Right',
backgroundColor:'green',
color:'black',
width:'50%',
height:'100%'
});
view.add(left);
view.add(right);
win.open();
Test Code
Already fixed in master and 2_0_X as part of TIMOB-5268
Duplicate of TIMOB-5268.
Closing ticket as duplicate.