Results 1 to 2 of 2

Thread: Fullscreen Overlay Panel and Message box conflict

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User elwhiz's Avatar
    Join Date
    Apr 2009
    Posts
    28

    Exclamation Fullscreen Overlay Panel and Message box conflict

    Hi,

    I have an app that uses a Fullscreen Overlay Panel and on that panel have buttons that I need to show message boxes.

    The problem is that when a message box is shown like an alert, and when I click on the message box's body or the Ok button, it will not hide the message box BUT INSTEAD it will hide the Fullscreen Overlay Panel. You will also notice that the message box mask is under that Fullscreen Overlay Panel.

    Again, the bugs in detail are:

    1. When a message box is shown over a Fullscreen Overlay Panel, the listeners on top are still the Fullscreen Overlay Panel.
    2. Tapping body or the Ok button of the message box will hide the Fullscreen Overlay Panel below.
    3. Listeners for the message box are active after the Fullscreen Overlay Panel is hidden.
    4. Mask for message box is under the Fullscreen Overlay Panel.

    I hope there's a fix or a work around for this.

    You can try the code below and see the problem.

    Thanks.

    Code:
    Ext.setup({
                onReady: function() {
    
                    var overlayTb = new Ext.Toolbar({
                        dock: 'top',
                        items: [
                            {
                                text: 'showAlert',
                                handler: function () {
                                    Ext.Msg.alert('Alert', 'On tapping Ok or this message box body, it will hide the Fullscreen Overlay Panel and the mask is behind that panel.');
                                }
                            },
                            {
                                text: 'close',
                                handler: function () {
                                    overlay.hide();
                                }
                            }
                        ]
                    });
    
                    var overlay = new Ext.Panel({
                        dockedItems: overlayTb,
                        floating: true,
                        fullscreen: true,
                        style: 'background-color: red',
                        html: 'Overlay Panel <br /> <br /> Tap on the button showAlert.'
                    });
    
                    var dockedItems = [
                        {
                            dock: 'top',
                            xtype: 'toolbar',
                            items: [
                                {
                                    text: 'showOverlay',
                                    handler: function () {
                                        overlay.show('pop');
                                    }
                                }
                            ]
                        }
                    ];
    
                    new Ext.Panel({
                        fullscreen: true,
                        dockedItems: dockedItems,
                        style: 'background-color: #BAE4FF',
                        html: "Main Panel <br /> <br /> Tap on the button showOverlay."
                    });
                }
            });

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    You should try to only have one floating component open at one time. This issue is the same as if you have a floating panel with a select field and you try to select it using the floating list.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •