Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Datebox and SimpleDialog2 disappears in Landscape mode on Android :-( #63

Open
Mahendra-Kadwa opened this issue Jan 4, 2013 · 1 comment

Comments

@Mahendra-Kadwa
Copy link

Happy New Year to all of you!

I've been using the SimpleDialgo2 and Datebox for the past few days while developing an app for Tablet and iPad, recently I started porting the app for small screen devices. These 2 components works smoothly in portrait mode, but I don't know, why these two components disappears in landscape mode on android device.

If possible it's possible for anyone, please have a look at the code given below and let me know, if I'm making mistake(s).

    $("<idv>").simpledialog2({
        mode: 'button',
        headerText: headerText,
        headerClose: false,
        useDialogForceTrue: true,
        buttonPrompt: message,
        buttons : {
          'OK': {
            click: function () { 
              $('#buttonoutput').text('Ok');
              //console.log("Ok clicked!: "+okCallback);
              if(okCallback){

                okCallback();
              }
            },
            theme: "c"
          },
          'Cancel': {
            click: function () { 
              $('#buttonoutput').text('Cancel');
              //console.log("Cancel clicked! : "+cancelCallback);
              if(cancelCallback){

                cancelCallback();
              }
            },
            icon: "delete",
            theme: "c"
          }
        }
    });

Thanks,
Mahendra

@Mahendra-Kadwa
Copy link
Author

I got the fix, but the solution was for different bug and it worked for mine issues as well.
robdiciuccio@9a26b8b

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant