PDA

View Full Version : [1.1b2] Transformed <select> gets re-positioned just before parent's closing tag



mystix
4 Jul 2007, 11:51 PM
Tripled-checked this one to be sure i didn't make any silly custom includes by mistake :D

here's a drop-in test case
<html>
<head>
<title>Transformed &lt;select&gt; bug</title>
<link rel='stylesheet' href='resources/css/ext-all.css'>

<script src='adapter/ext/ext-base.js'></script>
<script src='ext-all-debug.js'></script>

<script>
Ext.onReady(function() {
Ext.get('transform').on('click', function() {
new Ext.form.ComboBox({transform: 'mySelect'});
})
});
</script>
</head>
<body>
<form id='testForm'>
<select id='mySelect'>
<option value='1'>one</option>
<option value='2'>two</option>
<option value='3'>three</option>
<option value='4'>four</option>
</select>
<input type="button" id="transform" value="Transform!">
</form>
</body>
</html>

[cause]: only transformed <select>s are affected because the block which does the transformation doesn't set allowDomMove to false.

[edit]
tested against 1.1b2 and latest 1.1 SVN

jack.slocum
5 Jul 2007, 2:39 AM
It should set it, I will make the change. In the meantime, allowDomMove is a config option you can pass false. ;)

mystix
5 Jul 2007, 3:06 AM
great! :D

is allowDomMove a public config? if it is i'm filing it in the missing docs so the Doc Team can look at it.

jack.slocum
5 Jul 2007, 12:29 PM
Yes it is.