是的,这是可能的。运行此示例,单击按钮启动
Ext.Window
,然后将其部分拖出视图。
但是如果你取消
constrain: true
配置,它将
不
允许拖动到浏览器视图之外。
<html>
<head>
<link rel="stylesheet" href="ext-3.1.1/resources/css/ext-all.css" />
<script src="ext-3.1.1/adapter/ext/ext-base.js"></script>
<script src="ext-3.1.1/ext-all-debug.js"></script>
<script>
Ext.BLANK_IMAGE_URL = 'ext-3.1.1/resources/images/default/s.gif';
Ext.onReady(function(){
var p = new Ext.Panel({
renderTo: 'panel',
html: 'panel',
tbar: [{
text: 'Show a Modal Window',
handler: function() {
new Ext.Window({
//constrain: true,
title: 'Title',
html: 'Window',
modal: true
}).show();
}
}]
});
});
</script>
</head>
<body>
<div id="panel"></div>
</body>
</html>