Should be fixed in the last version: https://github.com/O...fd44268365b4f63
- Forums
- → Viewing Profile: Posts: Taapat
ATTENTION !!!
Due to a database corruption issue, we were forced to restore last-nights backup. This means all posts of Saterday Febuary 17th have been lost.Community Stats
-
Group
Senior Member
- OthersPLi® Core member
- Active Posts 2,344 ( per day)
- Profile Views 12,199
- Age 47 years old
- Birthday October 13, 1976
-
Gender
Male
-
Location
Latvia
Posts I've Made
In Topic: Youtube in OpenPli 9.0
29 April 2024 - 14:40
In Topic: [WIP] PLi-DarkOS Skin
9 April 2024 - 14:48
The length depends on the translation.
When I experimented with my solution, I found some menu entries that spread the menu so wide that I didn't like it.
And there were also menus that seemed too narrow.
Therefore, I think that min and max limits are necessary.
In Topic: [WIP] PLi-DarkOS Skin
9 April 2024 - 14:14
But don't forget to set some size limits.
I think it's better to split one long text instead of showing the menu over all screen.
In Topic: [WIP] PLi-DarkOS Skin
9 April 2024 - 12:44
Maybe I don't understand something because I haven't followed all the latest changes.
As I understand, the only thing that can change the size is the text in the title and the texts in the displayed menu lines.
You need to loop through them with checking their width and find out the widest.
After that, you can calculate the required window size.
If you choose one of the menus, a new window opens, which size you can adjust again with onLayoutFinish.
Here is a very simplified example of how I do it in my skin: https://github.com/T...s.xml#L222-L237
I know that the real size should be checked, not just the longest text, but it is designed to work faster.
In Topic: [WIP] PLi-DarkOS Skin
9 April 2024 - 07:06
You don't need to change anything after screen creation, because the content of the menu does not change during its use.
- Forums
- → Viewing Profile: Posts: Taapat