PDA

View Full Version : ComboBox / DateField problem



FireGlow
14 Jan 2009, 10:01 AM
Hi!

I have a problem with the combobox/datefield...

The dropdown/datepick button is not in the same line with the field itself. It's one row lower.




public class GroupNewForm extends FormPanel{


private DateField date = new DateField();

public GroupNewForm() {
date.setFieldLabel("Geburtstag");

this.add(date);
}
}

kolli
14 Jan 2009, 10:35 AM
Can you provide an image as it is working fine for me in form panel.

FireGlow
14 Jan 2009, 10:42 AM
here a screenshot:

http://www1.minpic.de/bild_anzeigen.php?id=52034&key=65759438&ende

sven
14 Jan 2009, 10:59 AM
try to set some bigger labelWidth on the formpanel.

FireGlow
14 Jan 2009, 11:15 AM
no, problem still exists

sven
14 Jan 2009, 11:16 AM
Post some complete testcase that i can just run.

FireGlow
14 Jan 2009, 11:48 AM
hmm, what do you need? there are to many classes in my project for "just run"...

I have the problem also with all the extgwt examples like

http://extjs.com/examples/forms/combos.html

if I post the code in my class, I get the problem...

sven
14 Jan 2009, 11:53 AM
if I post the code in my class, I get the problem...

So if you want that somebody can help you, you have to post some more code.

FireGlow
14 Jan 2009, 1:06 PM
package de.client;


import com.extjs.gxt.ui.client.widget.form.DateField;
import com.extjs.gxt.ui.client.widget.form.FormPanel;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;


public class Client implements EntryPoint {


private DateField date = new DateField();
private FormPanel form = new FormPanel();


public void onModuleLoad() {


date.setFieldLabel("test");
form.add(date);

RootPanel.get().add(form);
}
}


is it all you need Sven? This Code can be copied in the EntryPoint and then I get the bad DateField or ComboBox or what ever...

thx 4 your help!

kolli
14 Jan 2009, 1:16 PM
i pasted and code code and tried to run., It was working fine for me :-?

sven
14 Jan 2009, 1:20 PM
Are you using the latest GXT release?

FireGlow
14 Jan 2009, 1:36 PM
hmm, but I get this:

http://www1.minpic.de/bild_anzeigen.php?id=52150&key=96673790&ende

yes, gxt1.2

but maybe I only think, that I`m using it... how can I test it?

kolli
14 Jan 2009, 1:45 PM
Go to the location where gxt is stored. the name of the folder would be gxt and version number.

It is working for mine gxt 1.1.1

sven
14 Jan 2009, 1:46 PM
update to 1.2.1

One issue was fixed there that could maybe yours.

FireGlow
14 Jan 2009, 1:48 PM
ok, I found the bug:

in the css-file, that was copied from an example was:




button

{
display: block;

font-size: 16pt

}

.widePanel
{
width: 100%

}
img
{
margin-top: 20px;
}



the combobox and datepicker use the img?


THX for help!


-can be closed-

sven
14 Jan 2009, 1:50 PM
Yes. the trigger of combobox and datefield (both triggerfield) is an img tag.

kolli
14 Jan 2009, 1:59 PM
wow!! thats cool i didnot know that.. good that you got it solved..