Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
    <title>demo</title>
    <script src='http://dev.sencha.com/deploy/ext-4.0.7-gpl/ext-all.js'></script>
    <link rel="stylesheet" href="http://dev.sencha.com/deploy/ext-4.0.7-gpl/resources/css/ext-all.css">
  <script>
    Ext.onReady(function() {
      
         Ext.create('Ext.Component', {
          width: 50,
          height: 50,
          style: 'background: red; cursor: move;',
          floating: true,
          constrain: true,
          draggable: true,
          renderTo: 'box1'
        });
      
        Ext.create('Ext.Component', {
          width: 50,
          height: 50,
          style: 'background: red; cursor: move;',
          shadow: false,
          floating: true,
          constrain: true,
          draggable: true,
          renderTo: 'box2'
        });
      
    });
    </script>
</head>
  <body>
    <div id="box1" style="width: 300px; height: 100px; position: relative; background: gray;"></div>
    &nbsp;
    <div id="box2" style="width: 300px; height: 100px; position: relative; background: gray;"></div>
  </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers