PDA

View Full Version : textfield with vertical scrollbar?



Vanilo
19 Sep 2009, 8:25 AM
Hi

I have got a FormPanel with some textfields, the form looks perfectly fine on Safari but on Firefox, the vertical bar appears on the right of the textfields. (screenshot attached)

Here are the form codes:


var frm = new Ext.FormPanel({
url: 'url.php',
width: 600,
border: false,
labelWidth:110,
bodyStyle:'padding:10 10 10 10',
items:[{
xtype:'fieldset',
title: 'Fieldset 1',
autoHeight: true,
width:580,
defaults: {width: 420},
items:[{
xtype: 'textfield',
fieldLabel: 'Field 1',
name: 'field1',
allowBlank: false
},{
xtype: 'textfield',
fieldLabel: 'Field 2',
name: 'field2'
}]
}]
});



Any help would be greatly appreciated.

Animal
19 Sep 2009, 8:45 AM
The screenshot doesn't match the code, so cold be anything

The scrollbar is not on a textfield though is it? It's on the FieldSet isn't it? We can't REALLY tell with this lack of into of course...

Vanilo
19 Sep 2009, 9:04 AM
Hi Animal

Thanks for the reply. I have attached another screenshot of the codes with and without fieldset. I also thought it was the fieldset too.

It is worth to mention this only happens on Mac Firefox. I have just tested it on Windows with Firefox and the form looks perfectly fine...

Thanks again

Animal
19 Sep 2009, 9:17 AM
It looks like a CSS problem. The scrollbar is not on the textfield, it's on one of the wrapping Elements around it. Pok it with Firebug and see what is erroneously style to scroll its overflow.