Closed ruben82 closed 6 years ago
Hi.
This is a use case that didn't occurred to us. I think i know what may be causing the problem, let me inspect it.
I the meanwhile, if you could submit a test-case repository/gist it help a lot.
Update:
This is fixable with some overview on the math and transform logic applied, but needs to be investigated a little but further in order to avoid performance penalty.
In the meanwhile regarding your current case you could do one of the following :
*. Disable the unneeded button ( still displaying it, maybe bold, on the interface, but not doing anything on click)
*. Make the other button twice as big in case the other is unneeded.
I will take some time to inspect is further and try to release something that supports your use-case.
I have just released v1.0.6, size is calculated on each slide start, this means that as long as you do not change the size of the actions during the swipe process or while they are open, you should be fine.
Again, if you provide some kind of example repro I could come in greater help.
Regards.
Hi, thanks' for this plugin... I think is very useful. I have a problem If I have to change a button visibility. I must show a list of notifications, and the slide button have to help user to mark to read or delete a notification. The icon for "Marking to read" is visible if and only if flag called "FRead" is a "N" (I apply v-if ="item.FRead === ''N" on the icon div ). If a notification is not read, i have two icons: one to set read a notification and another to delete it. If I set notification to "READ", item flag is changed to "Y". Button is hidden but the space remains.
Before:
After:
Compared with the first notification (the rightest one)
How can I to refresh the width of buttons' content div, please? Thanks' in advance for your reply