question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem when removing multiple pages

See original GitHub issue

When 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.

screenshot_20170331-160007

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mpostcommented, Mar 31, 2017

Fix is incoming pending review.

1reaction
mpostcommented, Mar 31, 2017

I will look into the issue on the native side.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found