View Full Version : Bad Display
Hi,
I build a tree with the root and one leaf and i get two icon for each node on two lines.
Why ?
Thanks,
Blr
BernardChhun
23 Aug 2007, 11:54 AM
show us the code for a start...there might be a difference in what you think you are doing and what you have coded.
My code is for html page :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Ext Documentation Center</title>
<link rel="stylesheet" type="text/css" href="ext-1.1/docs/resources/collapser.css"></link>
<link rel="stylesheet" type="text/css" href="ext-1.1/docs/resources/docs.css"></link>
</head>
<body scroll="no" id="docs">
<script type="text/javascript" src="ext-1.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-1.1/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="ext-1.1/resources/css/ext-all.css" />
<script type="text/javascript" src="docs.js"></script>
<div id="classes">
</div>
</body>
</html>
for javascript is :
var Docs = function(){
var layout, center;
return {
init : function(){
var root = new Ext.tree.TreeNode({text:'root'});
var tree = new Ext.tree.TreePanel('classes',
{containerScroll: true,rootVisible:true,animate:false});
root.appendChild( new Ext.tree.TreeNode({text: 'f1',id:'f1',leaf: true}));
tree.setRootNode(root);
tree.render();
root.expand(false,false);
}
};
}();
Ext.onReady(Docs.init, Docs, true);
Thanks,
Blr
Hi,
The result is good when i delete the line (the css) :
<link rel="stylesheet" type="text/css" href="ext-1.1/docs/resources/collapser.css"></link>
Why ?
Thanks,
Blr
BernardChhun
24 Aug 2007, 8:53 AM
because you already have the ext-all.css file I guess. but I don't see how that could have had an influence
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.