[AC-3372] Windows: visible property not working properly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2016-03-15T14:16:59.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | visible, windowsphone |
Reporter | Zakhar Zhuravlev |
Assignee | Shak Hossain |
Created | 2016-03-15T09:19:40.000+0000 |
Updated | 2016-03-15T14:16:59.000+0000 |
Description
This bug affects 5.2.0 version!!! But I don't know how to select it.
Test project:
*index.xml:*
{noformat}
{noformat}
*index.tss:*
{noformat}
".navbar": {
top: '0dp',
height: "50dp",
left: '0dp',
right: '0dp',
backgroundColor: '#018ACD',
}
"#left": {
left: '0dp',
width: Ti.UI.SIZE,
visible: false
}
"#right": {
right: '0dp',
width: '20dp',
height: '20dp',
visible: false
}
{noformat}
*index.js:*
var state = false;
(function init() {
onTest();
})();
//----------------------------
function onTest() {
alert('onTest');
$.left.setVisible(state);
$.right.setVisible(state);
}
$.win.open();
1. Left and Right views should be invisible (visible: false in .tss file) but they are visible!
2. In init function I set manually this views to invisible state, but it's also not working!
3. I found the way how to make it working:
(function init() {
_.defer(onTest);
})();
But, of course, visibility not working properly like in android or ios.
Comments
- Jebun Naher 2016-03-15