1
後,如果我調整面板的TOP或到LEFT,其X和ÿ座標不斷重置爲初始值。我希望它自然行爲並更新其座標:例如,當調整到左側時,x應該按比例減小。ExtJS的4.1b3 - 更新面板座標調整
請問這段代碼有什麼問題?
版本:4.1 beta3版
請嘗試在此的jsfiddle: http://jsfiddle.net/astronaute/rgGwr/
Ext.Loader.setConfig({
enabled: true
});
Ext.onReady(function() {
Ext.create('Ext.Viewport', {
layout: 'absolute',
items: [
{
xtype: 'panel',
title: 'panel',
draggable: true,
resizable: true,
x: 100,
y: 100,
width: 100,
height: 100}]
});
});
我交叉張貼在他們的論壇上:http://www.sencha.com/forum/showthread.php?185724-Panel-resize-doesn-t-update-coordinates-normal讓我們希望有人在那裏回答。 – 2012-03-08 10:19:56