Problem when removing multiple pages
See original GitHub issueWhen remove multiple pages that having same class names from NavigationView, gray page content is appeared. However the latest existing page content had to be shown.
import {Page, Composite, NavigationView, ui} from 'tabris';
let pageNavigation = new NavigationView({
left: 0, top: 0, right: 0, bottom: 0
}).appendTo(ui.contentView);
new Page({class: 'first'}).append(
new Composite({left: 0, top: 0, right: 0, bottom: 0, background: 'yellow'})
).appendTo(pageNavigation);
new Page({class: 'second'}).append(
new Composite({left: 0, top: 0, right: 0, bottom: 0, background: 'red'})
).appendTo(pageNavigation);
new Page({class: 'second'}).append(
new Composite({left: 0, top: 0, right: 0, bottom: 0, background: 'red'})
).appendTo(pageNavigation);
new Page({class: 'second'}).append(
new Composite({left: 0, top: 0, right: 0, bottom: 0, background: 'red'})
.on('tap', () => pageNavigation.find('.second').dispose())
).appendTo(pageNavigation);
We have one yellow page and three red pages.
When I tap on latest red page, due to pageNavigation.find('.second').dispose()
all the second
class pages must be disposed, then yellow page must be shown.
However, instead of yellow page, gray page content is shown.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
If you can't add or delete a page in Pages on Mac
The process for adding and deleting pages is different for each type of document, so you need to know what type of document...
Read more >How to delete multiple pages in a Microsoft Word document
How to delete multiple pages in a Microsoft Word document · Open the document you want to edit. · Press F5 on your...
Read more >Problems with deleting multiple pages? : r/GoodNotes - Reddit
GoodNotes stops deleting after the first page is deleted and it auto-switches to the next page in the document. I can click 'move...
Read more >Delete one or multiple pages the easy way with Chris Menard
In Microsoft Word, you need a section break next page to go from portrait orientation to landscape orientation. Here is an easy way...
Read more >Shortcut to delete multiple page (range of pages) in Ms Word ...
The trick to delete multiple pages (range of pages) in Ms Word is to use extend mode. It helps in selecting multiple pages...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fix is incoming pending review.
I will look into the issue on the native side.