Giter VIP home page Giter VIP logo

Comments (5)

viezel avatar viezel commented on August 22, 2024

im not quite sure why, but I found that the property setter for panningMode only works when one of the side windows are open. Please try that..

regarding the NavigationBarOrOpenCenterPanning. This might be because ViewDesk implements its own navigationController. I have not exposed that due to compability issues with Titanium. So thats maybe why..

from nappslidemenu.

staticdreams avatar staticdreams commented on August 22, 2024

I just tried doing something like this:

napp.addEventListener('viewDidOpen', function(){
    napp.setPanningMode("NavigationBarPanning");
})

So when the application launched I'm able to open the menu, but as soon as it is open ... everything is blocked again. So, no, I'm not able to set panning mode when a side menu is open.

I would be very glad if for the time being at least one of the two NavigationBarPanning OR NavigationBarOrOpenCenterPanning works.. because I really need to restrict dragging the menu to navBar since there's another bug I discovered yesterday:

If in the center window you have a tableview and you enable 'moving' mode to reorder the rows they wont reorder.. a row would move a little bit and than snaps back in place. I spent a few hours trying to figure out why until I realised it was SlideMenu that was causing it. As soon as I set panning to "NoPanning" I was able to reorder the table. That's why I want to restring opening the menu to navBar and not the whole window.. I think there' s a conflict when dragging things around..

I know you're relying on ViewDesk for module to function properly so if there's no real solution to this I'll just disable panning altogether and stick to a button click which would open and close the menu for me..

from nappslidemenu.

viezel avatar viezel commented on August 22, 2024

Yeah, true.. There are no easy solution for this.
It would require that ViewDeck would know if difference bewteen TiNavGroup and TiWindow. In the current implementation it does not. So NavigationBar panning is no pannig atm.

from nappslidemenu.

viezel avatar viezel commented on August 22, 2024

btw, why dont you just set noPanning in your Tableview edit mode? (as a quick fix)
when you leave the edit mode or the window you set it to full again.

from nappslidemenu.

staticdreams avatar staticdreams commented on August 22, 2024

Yup. That did the trick!
Thanks Mads!

from nappslidemenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.