-
Notifications
You must be signed in to change notification settings - Fork 9
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
Selection bug when checkbox in list #219
Comments
In Toplo, the space assigned states to each elements. The bug is trigger because the ToLabel element of the toggle button receive a ToSelectionState caused by the ToListElement. To debug it you can place two debug points
It is a Toplo bug.
OR
|
Not a topple bogue.
|
With the standard primary selection, the solution is to add the stamp #'ignore-selection' in the label (the label skin already takes this stamp into account) :
|
Should the ignore selection stamp be default on button labels ? |
It is not just for button labels, it is used for cases like the one you noticed for the raw theme. |
If i understand correctly, this is not a bug but a missusage of the raw theme. For example, the ToRawTheme must come with a documentation explaining that you need to insert a dedicated stamp if you want to add a button to a list. Is it ok to expect that a theme must include its own documentation ? If yes, what does it have to take to be readable and accessible ? I have another question: How do we distinct the bugs created by Toplo and the bugs created by the theme ? |
the theme problem/bug/misusage comes from the RawTheme kind of skin within dedicated classes. It is difficult to take the context correctly into account. (here the context is a label with its own skin in a button with its own skin in a selected node (which selection element has its own skin) in a list. This is a good example to explain the benefit of a style sheet.
all the used stamps :))
A bug could be that the skin events are not sent correctly or in a bad order. Here, one can fix the issue by changing the skin, so one can say that it is a skin bogue, or this skin issue. But in the general case, I don't know |
Finally, I find the use of stamp not elegant indeed.
|
The labels do not displayed correctly when toggle buttons are in list.
Reproduce
Execute the code in playground.
Click on all toggle buttons and select a line in the list.
The text was updated successfully, but these errors were encountered: