Ext


Go Back   Ext JS Forums > Ext JS Community Forums (1.x) [Unsupported] > Ext 1.x: Help

Reply
 
Thread Tools
  #1  
Old 05-21-2007, 07:19 PM
FlexIDX FlexIDX is offline
Ext User
 
Join Date: Apr 2007
Posts: 51
FlexIDX is on a distinguished road
Default Form elements float in IE, fine in firefox

Hello,

When creating a form using EXTJS and placing that form in a modal dialog if the modal dialog has a scroll bar, when scrolling it causes the form elemets to stay fixed (move with the scroll bar) This is only IE 6.0 and 7

here is the code to duplicate the problem.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                <title>Test</title>
		<link rel="stylesheet" type="text/css" href="/common/js/ext-1.0.1/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css" href="/common/js/ext-1.0.1/resources/css/ytheme-aero.css" />
		<script type="text/javascript" src="/common/js/ext-1.0.1/adapter/yui/yui-utilities.js"></script>
		<script type="text/javascript" src="/common/js/ext-1.0.1/adapter/yui/ext-yui-adapter.js"></script>
		<script type="text/javascript" src="/common/js/ext-1.0.1/ext-all.js"></script>
		<script type="text/javascript" src="/common/js/ext-1.0.1/ext-all-debug.js"></script>
		<script type="text/javascript">
			Ext.BLANK_IMAGE_URL = 'https://www.domain.com/common/js/ext-1.0.1/blank.gif';
			Ext.SSL_URL = 'https://www.domain.com/common/js/ext-1.0.1/blank.html';
			Ext.onReady(function(){
				Ext.QuickTips.init();
			});
		</script> 
</head>

        <body>
		<script type="text/javascript">
		var artistView = function(){
			// everything in this space is private and only accessible in the artistView block
			
			// define some private variables
			var dialog, showBtn;
			
			// return a public interface
			return {
				init : function(){
					 showBtn = Ext.get('show-artistView-dlg');
					 // attach to click event
					 showBtn.on('click', this.showDialog, this);
				},
			   
				showDialog : function(){
					if(!dialog){ // lazy initialize the dialog and only create it once
						dialog = new Ext.BasicDialog("artistView-dlg", {
								modal:true, 
								autoTabs:false,
								width:400,
								height:150,
								shadow:true,
								minWidth:400,
								minHeight:400,
								proxyDrag: true
						});
						dialog.addKeyListener(27, dialog.hide, dialog);
						//dialog.addButton('Submit', dialog.hide, dialog).disable();
						//dialog.addButton('Close', dialog.hide, dialog);
					}
					dialog.show(showBtn.dom);
				}
			};
		}();
		Ext.onReady(artistView.init, artistView, true);
		Ext.onReady(function(){
		var fs = new Ext.form.Form({
			labelAlign: 'right',
			labelWidth: 75
		});
	
		fs.fieldset(
			{legend:'Contact Information'},
			new Ext.form.TextField({
				fieldLabel: 'First Name',
				name: 'first',
				width:190
			}),
	
			new Ext.form.TextField({
				fieldLabel: 'Last Name',
				name: 'last',
				width:190
			}),
	
			new Ext.form.TextField({
				fieldLabel: 'Company',
				name: 'company',
				width:190
			}),
	
			new Ext.form.TextField({
				fieldLabel: 'Email',
				name: 'email',
				vtype:'email',
				width:190
			}),
	
			new Ext.form.DateField({
				fieldLabel: 'Date of Birth',
				name: 'dob',
				width:190,
				allowBlank:false
			})
		);
		fs.addButton('Search');
		fs.render('TheSearchForm');

		//end on ready statement
		});
		</script>


<button name="show-artistView-dlg" id="show-artistView-dlg">Tester</button>
<div id="show-artistView-dlg" style="display:none;"></div>
<div id="artistView-dlg" style="visibility:hidden;position:absolute;top:0px;">
<div class="x-dlg-hd" id="artistView-dlg-title" sytle="height: 25px;">Search</div>
	<div class="x-dlg-bd">
			<div style="padding:10px;">
				<div id="TheSearchForm">
				
				</div>
			</div>
	</div>
</div>
Reply With Quote
  #2  
Old 05-22-2007, 09:52 AM
FlexIDX FlexIDX is offline
Ext User
 
Join Date: Apr 2007
Posts: 51
FlexIDX is on a distinguished road
Default

This works perfect in FireFox, and seams to happen with any form element EXT is attached to.

if putting the form in tabs, you have to put it in the first tab, if only one tab it happens if a second tab is created the issue goes away. any ideas?

Chris
Reply With Quote
  #3  
Old 05-24-2007, 10:48 AM
bereal's Avatar
bereal bereal is offline
Ext JS Premium Member
 
Join Date: Apr 2007
Location: Geneva, Switzerland
Posts: 88
bereal is on a distinguished road
Send a message via ICQ to bereal
Default

Same problem.

Come on, guyz, help us!
Reply With Quote
  #4  
Old 05-28-2007, 10:07 PM
twhite56 twhite56 is offline
Ext User
 
Join Date: May 2007
Posts: 12
twhite56 is on a distinguished road
Default

I have the same problem when using a contentpanel...form items in IE just move around. It has to be a position: relative issue, but I was curious if others had a way around it...any ideas? I can show a demo if needed.
Reply With Quote
  #5  
Old 05-28-2007, 10:29 PM
jack.slocum's Avatar
jack.slocum jack.slocum is offline
Ext JS - Development Team
 
Join Date: Mar 2007
Posts: 6,941
jack.slocum is on a distinguished road
Default

Try searching -there at least 10-20 threads on the same issue.
__________________
Jack Slocum
Ext JS - Core Development Team
jack@extjs.com
Reply With Quote
  #6  
Old 05-29-2007, 03:25 AM
bereal's Avatar
bereal bereal is offline
Ext JS Premium Member
 
Join Date: Apr 2007
Location: Geneva, Switzerland
Posts: 88
bereal is on a distinguished road
Send a message via ICQ to bereal
Default

Hey Jack, we tired of searching, really.
If you know the answer - just give us a link.
Reply With Quote
  #7  
Old 05-29-2007, 11:54 AM
twhite56 twhite56 is offline
Ext User
 
Join Date: May 2007
Posts: 12
twhite56 is on a distinguished road
Default

http://extjs.com/forum/showthread.ph...tive+scrolling
Reply With Quote
  #8  
Old 05-29-2007, 07:31 PM
FlexIDX FlexIDX is offline
Ext User
 
Join Date: Apr 2007
Posts: 51
FlexIDX is on a distinguished road
Default

The element that gets the scroll needs:
style="position:relative;"

in my case
<div class="x-dlg-bd" style="position:relative;">


Thanks for the help twhite56
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 06:44 PM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.