framework7

Open full view…

Problem with "view view-main tab-active

macak
Sun, 07 May 2017 13:11:11 GMT

I've got a single file with mutiples views (5). The first view (view main-view with tab active class) doesn't seem to work properly. When I open the app. If I cilc on any other tab-link. Everything's ok. But if try to clic on the active tab-link, or scroll up or down on the main view. A black screen appear. But toolbar and tabbar are still usable behind this black screen. And if I use one of those links. The app return to normal until I close it. The problem occur only on main-view and only the first time I open the app.

macak
Sun, 07 May 2017 16:09:50 GMT

I'm pretty sure the error came from my js. var myApp = new Framework7({ cache: false, }); // Add view var mainView = myApp.addView('.view-main', { });

macak
Wed, 10 May 2017 01:49:18 GMT

Find a solution. But surely not the best one. Add to JS: var myView = myApp.addView('.tab.active'); myView.loadPage('index.html'); This way. The active tab and main view works flawlessly. But you can see the app. reload the page. Is there a better way to correct that?

dannyredfern
Sun, 19 Nov 2017 09:19:45 GMT

Im having this exact same issue, anyone know a way around it? I tried this solution that macak showed above but when i now use a popup, when the popup is closed and i return to the main tab the content disappears. Any help would be appreciated :)