facebook

Help with designing UI in landscape/portrait

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #333480 Reply

    WaylandDavis
    Member

    Wayne,

    I, too, am confused here. I have screen 1 which is a portrait version of a calculator panel.

    i.e., “m1-calc1.panel” I want to “slide” or “fade” to screen2 which is a landscape versions of the same items.

    I don’t want to have to reconfigure each widget during an orientation change and use a single screen and there seems not
    to be a compatible layout that adequately satisfies both portrait and landscape.

    See attached jpgs:

    Attachments:
    You must be logged in to view attached files.
    #333578 Reply

    Unknown Author
    Participant

    Could always measure screen height, then go to a screen based on orientation.
    -1TC

    #333579 Reply

    WaylandDavis
    Member

    Hello 1TC,

    I can trap for the orientation from the Screen 1. the newOrientation value for portrait is 0 (maybe 180 for upside down portrait, I didn’t try that one) and -90 and 90 for left landscape and right landscape.

    My real question is I have widgets named ‘m1-screen1-btncalc1’, ‘m1-screen1-btncalc2’, … When I switch to the landscape screen which is a different .mobi file for screen2, what do I name my widgets? Can they have the same names as Screen1?

    All my javascript/jquery stuff loads with the first screen, so when I switch to the second screen what happens. Is that still resident? If so, then I could name the widgets on the second screen the same as on screen1 and then would a push on the calculator key ‘1’ call the function for that button and execute it as if the first page would have done?

    Seems like a lot of work to switch to another screen. I may switch to tabs.

    Thanks for your interest in my problem.

    wildwex

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Help with designing UI in landscape/portrait

You must be logged in to post in the forum log in