Closed m1ga closed 10 months ago
Fixes an issue that came with https://github.com/tidev/titanium-sdk/pull/13954 and window titles. Title where not shown in all (sub)windows:
var win = Titanium.UI.createWindow({ barColor: "pink", backgroundColor: "white", title: 'Autos', titleAttributes: { top: 0, color: "blue", }, }); win.addEventListener("click", function() { win.titleAttributes = { color: "yellow" } }) win.open();
open and click
var win = Titanium.UI.createWindow({ barColor: "pink", backgroundColor: "white", title: 'Autos', titleAttributes: { top: 0, color: "blue", }, }); var navWin = Titanium.UI.createNavigationWindow({ window: win, }); win.addEventListener("click", function() { win.titleAttributes = { color: "yellow" } win.title = "new" var w2 = Ti.UI.createWindow({ barColor: "black", backgroundColor: "white", title: 'subwindow', titleAttributes: { top: 0, color: "green", }, }) navWin.openWindow(w2); setTimeout(function() { w2.title = "subwindow 2"; }, 2000); }) navWin.open();
open and click, wait, close window after title changed.
Fixes an issue that came with https://github.com/tidev/titanium-sdk/pull/13954 and window titles. Title where not shown in all (sub)windows:
Test 1:
open and click
Test 2:
open and click, wait, close window after title changed.