Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy are black squares appearing in Chrome?
    primarykey
    data
    text
    <p>I'm developing an application in ExtJS 4.2.0 and using Chrome as my development browser. I've noticed that when I hide dropdown menus black squares appear in their place. I'm assuming this isn't supposed to happen! Has anyone else experienced this?</p> <p>I'm using ExtJs 4.2.0 and Chrome 27.0.1453.94 m.</p> <p>Thanks!</p> <h1>UPDATE</h1> <p>After some investigation I've found that it happens when using ExtJS in conjunction with the Javascript Infovis Toolkit (<a href="http://philogb.github.io/jit/" rel="nofollow">http://philogb.github.io/jit/</a>). I've managed to recreate the problem reliably here:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Black Box Experiment&lt;/title&gt; &lt;script type="text/javascript" src="http://philogb.github.io/jit/static/v20/Jit/jit-yc.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="http://cdn.sencha.io/ext-4.2.0-gpl/resources/css/ext-all.css"&gt; &lt;script type="text/javascript" src="http://cdn.sencha.io/ext-4.2.0-gpl/ext-all-debug.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;script type="text/javascript"&gt; Ext.onReady(function(){ //some data to put in the chart var data = { "name": "Test1", "data": { "id": "1" } }; //Create a new ST instance var st = new $jit.ST({ injectInto: 'infovis', duration: 0, levelDistance: 50, orientation: "top", Navigation: { enable:false, panning:true }, Node: { height: 30, width: 150, autoHeight: false, autoWidth: false, type: 'rectangle', overridable: true }, NodeStyles: { enable: true, stylesHover: { 'color': '#dd3333' }, duration: 700 }, Edge: { type: 'bezier', overridable: true } }); //load json data st.loadJSON(data); st.compute(); //emulate a click on the root node. st.onClick(st.root); //create our extjs panel for the buttons Ext.create(Ext.panel.Panel,{ title: "Test panel", width: 300, height: 100, items: [ { xtype: 'button', text: 'Open/Close Menu', menu: [ {text: 'button 1'}, {text: 'button 2'}, {text: 'button 3'}, {text: 'button 4'}, {text: 'button 5'}, {text: 'button 6'} ] }, { xtype: 'button', text: 'Click to open an alert - a black square will appear', handler: function(){ Ext.Msg.alert("Test","A black box should now be appearing where the menu button is."); } } ], renderTo: Ext.getBody() }); }); &lt;/script&gt; &lt;div id="infovis" style="width: 300px; height: 300px; margin: auto; overflow: scroll; border: 1px solid black;"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>In the example above, take the following steps to recreate the problem: 1. Click on the "Open/Close Menu" button twice (once to open, once to close) 2. Click on the "Alert" button. A black box should appear in the position of the menu that we've just closed.</p> <p>Does anyone else see this?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload