Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Window element disappears when changing skin #81

Closed
flippy1345 opened this issue Jul 2, 2018 · 5 comments
Closed

Window element disappears when changing skin #81

flippy1345 opened this issue Jul 2, 2018 · 5 comments

Comments

@flippy1345
Copy link

When you change the skin in a view, the window element is not visible.
Everything else uses the new skin with its fonts and so on.
Is the window element generated once before everything, because it is a must have root element ?

//Not visible
TestText //Visible
TestButton //Visible

@czyzby
Copy link
Owner

czyzby commented Jul 3, 2018

It's hard to tell without the LML code, could you paste it? Screenshots could also help.

@flippy1345
Copy link
Author

image

@czyzby
Copy link
Owner

czyzby commented Jul 7, 2018

I meant screenshots of the application. ;)

Anyway, the only thing that seems suspicious in the LML template is the width of the window - table pads and button widths are greater than the width you set for the whole window, but I don't think it would cause such issues.

Skin changing code might cause the problem, try debugging that. Is the window still on the stage after the skin is changed? Does the new skin define a window style? If you made a typo, it's possible that the window defaults to no background and is simply transparent.

You can paste the skin changing code (just the code) and I'll check if there are any issues.

@czyzby czyzby added the lml label Jul 7, 2018
@flippy1345
Copy link
Author

flippy1345 commented Aug 28, 2018

I had a logic error in it.
It now works.
Sorry for not responding in a long time.

@czyzby
Copy link
Owner

czyzby commented Aug 28, 2018

It's OK, glad you worked it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants