Dialog close without selecting the value into text fields on on Simulator











up vote
1
down vote

favorite
1












I use the dialog to display date range control. On Simulator before selecting the value dialog closes and I'm not able to change or update any value. Please see the code below. Please advise if there is any known issue.










share|improve this question
























  • Which dialog? The picker or the popup? I'm guessing the lightweight picker triggered something here but we'll need an isolated test case
    – Shai Almog
    Nov 5 at 4:06










  • @Shai...Popup itself closes on selection on the picker.
    – LC1
    Nov 6 at 3:19















up vote
1
down vote

favorite
1












I use the dialog to display date range control. On Simulator before selecting the value dialog closes and I'm not able to change or update any value. Please see the code below. Please advise if there is any known issue.










share|improve this question
























  • Which dialog? The picker or the popup? I'm guessing the lightweight picker triggered something here but we'll need an isolated test case
    – Shai Almog
    Nov 5 at 4:06










  • @Shai...Popup itself closes on selection on the picker.
    – LC1
    Nov 6 at 3:19













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I use the dialog to display date range control. On Simulator before selecting the value dialog closes and I'm not able to change or update any value. Please see the code below. Please advise if there is any known issue.










share|improve this question















I use the dialog to display date range control. On Simulator before selecting the value dialog closes and I'm not able to change or update any value. Please see the code below. Please advise if there is any known issue.







codenameone






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago

























asked Nov 5 at 1:41









LC1

42417




42417












  • Which dialog? The picker or the popup? I'm guessing the lightweight picker triggered something here but we'll need an isolated test case
    – Shai Almog
    Nov 5 at 4:06










  • @Shai...Popup itself closes on selection on the picker.
    – LC1
    Nov 6 at 3:19


















  • Which dialog? The picker or the popup? I'm guessing the lightweight picker triggered something here but we'll need an isolated test case
    – Shai Almog
    Nov 5 at 4:06










  • @Shai...Popup itself closes on selection on the picker.
    – LC1
    Nov 6 at 3:19
















Which dialog? The picker or the popup? I'm guessing the lightweight picker triggered something here but we'll need an isolated test case
– Shai Almog
Nov 5 at 4:06




Which dialog? The picker or the popup? I'm guessing the lightweight picker triggered something here but we'll need an isolated test case
– Shai Almog
Nov 5 at 4:06












@Shai...Popup itself closes on selection on the picker.
– LC1
Nov 6 at 3:19




@Shai...Popup itself closes on selection on the picker.
– LC1
Nov 6 at 3:19












1 Answer
1






active

oldest

votes

















up vote
1
down vote













This is probably related to this line:



range.setDisposeWhenPointerOutOfBounds(true);


When you start interacting with the Picker popup, it disposes the dialog because the pointer it outside the bounds of the underlying dialog.



I have made a change to Dialog that will be available in the next update on Friday that will fix this issue.



https://github.com/codenameone/CodenameOne/commit/2c5fbfc9ae06e35911b5832441a685724e9739a0






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147275%2fdialog-close-without-selecting-the-value-into-text-fields-on-on-simulator%23new-answer', 'question_page');
    }
    );

    Post as a guest
































    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    This is probably related to this line:



    range.setDisposeWhenPointerOutOfBounds(true);


    When you start interacting with the Picker popup, it disposes the dialog because the pointer it outside the bounds of the underlying dialog.



    I have made a change to Dialog that will be available in the next update on Friday that will fix this issue.



    https://github.com/codenameone/CodenameOne/commit/2c5fbfc9ae06e35911b5832441a685724e9739a0






    share|improve this answer

























      up vote
      1
      down vote













      This is probably related to this line:



      range.setDisposeWhenPointerOutOfBounds(true);


      When you start interacting with the Picker popup, it disposes the dialog because the pointer it outside the bounds of the underlying dialog.



      I have made a change to Dialog that will be available in the next update on Friday that will fix this issue.



      https://github.com/codenameone/CodenameOne/commit/2c5fbfc9ae06e35911b5832441a685724e9739a0






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        This is probably related to this line:



        range.setDisposeWhenPointerOutOfBounds(true);


        When you start interacting with the Picker popup, it disposes the dialog because the pointer it outside the bounds of the underlying dialog.



        I have made a change to Dialog that will be available in the next update on Friday that will fix this issue.



        https://github.com/codenameone/CodenameOne/commit/2c5fbfc9ae06e35911b5832441a685724e9739a0






        share|improve this answer












        This is probably related to this line:



        range.setDisposeWhenPointerOutOfBounds(true);


        When you start interacting with the Picker popup, it disposes the dialog because the pointer it outside the bounds of the underlying dialog.



        I have made a change to Dialog that will be available in the next update on Friday that will fix this issue.



        https://github.com/codenameone/CodenameOne/commit/2c5fbfc9ae06e35911b5832441a685724e9739a0







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 5 at 17:29









        steve hannah

        3,286612




        3,286612






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147275%2fdialog-close-without-selecting-the-value-into-text-fields-on-on-simulator%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()