You found a bug! We've classified it as EXTJSIV-7765 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    678
    Vote Rating
    62
    Daniil is a jewel in the rough Daniil is a jewel in the rough Daniil is a jewel in the rough Daniil is a jewel in the rough

      0  

    Default [4.1.3] Spotlight doesn't mask, but causes scrollbars to be appeared

    [4.1.3] Spotlight doesn't mask, but causes scrollbars to be appeared


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.1.3
    Browser versions tested against:
    • Chrome
    • IE9
    DOCTYPE tested against:
    • <!DOCTYPE html>
    Description:
    • Spotlight appears to be no working in the test case below (apologize if I used it wrong).
    Steps to reproduce the problem:
    • Click the Spot button
    The result that was expected:
    • The Spotlight effect
    The result that occurs instead:
    • No the spotlight effect. But scrollbars appear.
    Test Case:
    Code:
    <!DOCTYPE html>
    <html>
    <head>
        <title>Spotlight</title>
    
        <link type="text/css" rel="stylesheet" href="../resources/css/ext-all.css" />
        
        <script type="text/javascript" src="../ext-all-debug.js"></script>
        <script type="text/javascript" src="../examples/ux/Spotlight.js"></script>
    
        <script type="text/javascript">
            Ext.onReady(function () {
               var spot = Ext.create("Ext.ux.Spotlight", {
                    duration: 300,
                    easing: "easeOut"
                });
    
                Ext.create("Ext.panel.Panel", {
                    id: "panel1",
                    renderTo: Ext.getBody(),
                    height: 200,
                    width: 200,
                    html: "Some Content"
                });
    
                Ext.create("Ext.button.Button", {
                    renderTo: Ext.getBody(),
                    text: "Spot",                
                    handler: function () {
                        spot.show("panel1");
                    }
                });            
            });
        </script>
    </head>
    <body>
    
    </body>
    </html>
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,582
    Vote Rating
    433
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    15,066
    Vote Rating
    96
    evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold evant is a splendid one to behold

      0  

    Default


    The CSS that's in the page is also required for the mask to show up.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Location
    Saint-Petersburg, Russia
    Posts
    678
    Vote Rating
    62
    Daniil is a jewel in the rough Daniil is a jewel in the rough Daniil is a jewel in the rough Daniil is a jewel in the rough

      0  

    Default


    Thank you, Evan.

    Apologize for wasting your time.
    Ext.NET - ASP.NET for Ext JS
    MVC and WebForms
    Examples | Twitter