Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): fix titleAttribute when it's not a creation parameter #14090

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Jul 28, 2024

If you don't set titleAttributes at window creation and try to set it after that it won't set the color:

var win = Titanium.UI.createWindow({
	barColor: "pink",
	backgroundColor: "white",
	title: 'foo',
});


win.addEventListener("click", function() {
	win.titleAttributes = {
		color: "yellow"
	}
	win.title = "test"
})
win.open();

Test

  • run the code
  • click the window
  • title and color should change

@hansemannn hansemannn merged commit 017c052 into master Aug 20, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants