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

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
<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>

Ext.onReady(function() {
Ext.get('transform').on('click', function() {
new Ext.form.ComboBox({transform: 'mySelect'});
<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>
<input type="button" id="transform" value="Transform!">

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

tested against 1.1b2 and latest 1.1 SVN

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. ;)

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.

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