Giter Site home page Giter Site logo

Comments (7)

atypical avatar atypical commented on June 20, 2024

The issue you're having doesn't have anything to do with this Module. You set your supported orientation modes in your tiapp.xml file like so - http://d.pr/i/jtvC

Please read the appcelerator documentation - http://docs.appcelerator.com/titanium/3.0/#!/guide/Orientation - they're extensive and very helpful.

from nappdrawer.

martintietz avatar martintietz commented on June 20, 2024

Thanks for the link, but I tried that already, of course ;) Removing

<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>

from tiapp.xml does not prevent the drawer and its contents from switching to a landscape mode.

My use case is the following: I want to prevent any landscape mode for everything inside the Drawer (center window and sidebars). But I also want to be able to open a new window (e.g. a videoplayer) and allow landscape modes for this specific window. Is this possible using this module?

from nappdrawer.

atypical avatar atypical commented on June 20, 2024

Well, removing those from your tiapp file should inhibit your app from rotating to either of those orientations completely. Have you tried cleaning your build after updating your tiapp file?

from nappdrawer.

martintietz avatar martintietz commented on June 20, 2024

Yes, I ran titanium clean before rebuilding the project - no change. I even tried the app.js from the module's example directory. The app rotates, no matter what the orientation settings are.

from nappdrawer.

martintietz avatar martintietz commented on June 20, 2024

After some digging into the module's source code I noticed that there is an undocumented parameter orientationModes that can be used inside createDrawer(). There is also a setter method.
Worth a mention inside the docs :)

from nappdrawer.

atypical avatar atypical commented on June 20, 2024

Nice find! Put in a pull request with an updated readme and or example app.js and I'm sure @viezel would consider accepting it.

from nappdrawer.

viezel avatar viezel commented on June 20, 2024

super!

from nappdrawer.

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.