[ECSide] 关于ECSide无法调整列宽的问题(新手)
appleboy
2007-11-29
我刚接触ECSide,比着发布的demo做了一个例子。数据能正常显示,但是列宽死活无法调整。
把相关代码贴出来,还请各位帮助解决下.... <script type="text/javascript" src="<%=webapps %>/ecside/js/ecside_msg_gbk_cn.js"></script> <script type="text/javascript" src="<%=webapps %>/ecside/js/ecside.js"></script> <script type="text/javascript" src="<%=webapps %>/ecside/js/prototype_mini.js"></script> <link rel="stylesheet" href="<%=webapps %>/ecside/css/ecside_style.css" type="text/css"></link> <ec:table action="usermanager.do?methode=doQueryUserInfo" width="580px" height="200px" minHeight="200px" resizeColWidth="true" doPreload="false" filterable="true" sortable="true" items="userList" var="user" pageSizeList="10,20,30,all" rowsDisplayed="10" useAjax="true" editable="true" showTitle="true" style="table-layout:fixed;" > <ec:row recordKey="${user.userid}" rowId="rowid_${GLOBALROWCOUNT}"> <ec:attribute>title="${user.username}"</ec:attribute> <ec:column property="_0" editable="false" title="序号" width="50">${GLOBALROWCOUNT}</ec:column> <ec:column property="username" editable="true" title="姓名" width="80"/> <ec:column property="userrole" editable="true" title="角色" width="100"/> <ec:column property="regdate" editable="true" title="注册时间" width="150"/> <ec:column property="email" editable="true" title="email" width="150"/> <ec:column property="gender" editable="true" title="性别" width="50"/> </ec:row> </ec:table> 在IE7和firefox下均不能调整列宽。 在firefox的控制台里,输出如下信息: ECSideUtil.separateLine has no properties StartResize(mousedown clientX=0, clientY=0, span.columnSeparator, "ec")ecside.js (line 2102) onmousedown(mousedown clientX=0, clientY=0)usermanager.do (line 1) [Break on this error] ECSideUtil.separateLine.style.top=ECSideUtil.getPosTop(ECSideUtil.DragECSideObj... PS:ECSide版本:2.0RC1 |
|
shenxuguipohun
2007-11-30
正常来讲,如果在<ec:table>里面加入了classic属性才不可以调整列宽的~也有可能是浏览器的问题~~
|