PDA

View Full Version : Weird window with colours using FileUploadField



maqjav
6 Oct 2010, 1:42 AM
Hello.

I've been trying some tests with this component and today I got a really weird result.
If you do the next...


FileUploadField fileUploadField = new FileUploadField();
fileUploadField.setSize(340,22);

LayoutContainer layout = new LayoutContainer(new RowLayout());
layout.setSize(350,90);
layout.add(fileUploadField, new RowData(-1,-1, new Margins(0,0,0,5));

LayoutContainer row = new LayoutContainer(new RowLayout(Orientation.HORIZONTAL));
row.setSize(440, 90);
row.add(layout , new RowData(350, 80, new Margins(10, 0, 0, 0)));


It will work in Chrome, but in IE8, it will render correctly but a weird window with 3 buttons (red, green and blue) will popup next to the FileUploadField. When you click on the buttons it changes the background of the DIV that contains them, very curious :))

If you set the size in the LayoutContainer the popup won't appear and the results will be exactly the same than before.


layout.add(fileUploadField, new RowData(345,-1, new Margins(0,0,0,5));


I didn't know where to post this, if it's in the wrong place please move it.
Thanks.

sven
6 Oct 2010, 1:55 AM
I dont know, have you disabled images in your IE? That could make this.

maqjav
6 Oct 2010, 2:15 AM
No, I have the default configuration in my IE and I don't have any image disabled.

If it happends again I will let you know :), if you don't know what it is then sure it's nothing important, I was just curious.

Regards.