You found a bug! We've classified it as EXTJSIV-9270 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    1
    nidalpres is on a distinguished road

      1  

    Default src/Layer.js does not exist in ExtJS 4.2.0

    src/Layer.js does not exist in ExtJS 4.2.0


    REQUIRED INFORMATION Ext version tested:
    • Ext 4.2.0 gpl rev 663
    Browser versions tested against:
    • FF13
    DOCTYPE tested against:
    • ____
    Description:
    • When you include ExtJS css and js files like this:
    • <link rel="stylesheet" href="resources/extjs-4.2.0/resources/css/ext-all.css">
      <script src="resources/extjs-4.2.0/ext-all.js"></script>
      and use Ext.require(['*']); to load all and every class
      everything works fine, all ExtJS code is in ext-all.js
    • But when you do it like this:
    • <link rel="stylesheet" href="resources/extjs-4.2.0/resources/css/ext-all.css">
      <script src="resources/extjs-4.2.0/ext.js"></script>
      and use Ext.require(['*']); to load all and every class
      all js files are loaded except for src/Layer.js and this is reported by Firebug:

      NetworkError: 404 Not Found - http://localhost:8080//resources/ext...0/src/Layer.js
    Steps to reproduce the problem:
    • see description
    The result that was expected:
    • loading of all ExtJS source js files separately by ExtJS loader
    The result that occurs instead:
    • all files are loaded except for src/Layer.js which is reported missing, and is really missing from source
    Test Case:
    Code:
         <link rel="stylesheet" href="resources/extjs-4.2.0/resources/css/ext-all.css">
    <script src="resources/extjs-4.2.0/ext.js"></script>
    
        <script type="text/javascript">
    
        Ext.Loader.setConfig({
            enabled: true
        });
        Ext.require(['*']);
    Ext.onReady(function() {
             var panel = Ext.create('Ext.panel.Panel', {
                 title: 'Panel',
                 layout: {
                     type: 'vbox',
                     align: 'center'
                 },
                 html: 'blahblah'
             });
              
            var viewport = Ext.create('Ext.Viewport', {
                layout: 'fit',
            items: [panel]
            });
            
            viewport.doLayout();
        });
    </script>
    HELPFUL INFORMATION
    Screenshot or Video: See this URL for live test case: http://
    Debugging already done:
    • none
    Possible fix:
    • add Layer.js file to download
    Additional CSS used:
    • only default ext-all.css
    Operating System:
    • Win7

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,458
    Vote Rating
    20
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    It's in extjs/src/dom

    So it's loading it from the wrong directory.