利用Resizable 调整Panel大小,拖大没问题,拖小显示不正确

liangsjlsr 2012-12-22 10:46:35
var PanelPlayForm = new Ext.Panel({
title: ddSource.dragData.selections[0].data.ResId + '-' + ddSource.dragData.selections[0].data.ResFileName,
layout: 'fit',
id: ddSource.dragData.selections[0].data.ResId,
region: 'west',
closeAction: 'hide',
border: true,
autoDestroy: true,
plain: true,
height: 100,
width: 100,
bodyBorder: true,
style: 'border: 2px solid #8db2e3'
});
formSubPlayPlanWin.items.add(PanelPlayForm);
ddSource.grid.store.remove(selectedRecord);
formSubPlayPlanWin.doLayout();


eval("var custom" + ddSource.dragData.selections[0].data.ResId + "= new Ext.Resizable"
+ "('" + ddSource.dragData.selections[0].data.ResId + "', {"
// + "minWidth: 100," + "minHeight: 100," + "dynamic: true," //+ "wrap:true,"
// + "draggable: true" + "});" // dynamic: true 拖动的时候是否显示线 默认为false transparent:true//是否有外框 // 设置wrap:true时,拖拽正常,但是不能正常得到宽度,高度,及位置;不设置则修改时不能变小。。。
+ "minWidth: 100," + "minHeight: 100," + "animate: true," + "easing: 'backIn',"
+ "dynamic: true," + "duration:.6," + "draggable: true" + "});"


);

生成一个PanelPlayForm ,Resizable 指向它,当PanelPlayForm的宽度和高度设置与Resizable 的最小宽度、最小高度设置相同时,拖动变大没有问题;当PanelPlayForm的宽度和高度大于Resizable 的最小宽度、最小高度时,拖大没问题,拖小显示不正确。。。请问怎么办。。。
...全文
106 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

87,991

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧