PDA

View Full Version : [FIXED] [2.0.1] ListField.forceInvalid() flickers in IE7



hstang
23 Jul 2009, 9:34 AM
Hi,

In IE7, When I do ListFIeld.forceInvalid(), the icon movement is visible in IE7 and FF


public class Test implements EntryPoint
{

DualListField<Stock> lists;

public void onModuleLoad()
{
Test t = new Test();
RootPanel.get().add(t);
Button button = new Button("Call me", new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent evt)
{
ListField<Stock> stocks = lists.getToList();
stocks.forceInvalid("oh no");
}
});

RootPanel.get().add(button);

}

class Test extends LayoutContainer
{
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
setStyleAttribute("margin", "10px");

FormPanel panel = new FormPanel();
panel.setHeading("Drag and Drop Lists");

lists = new DualListField<Stock>();

lists.setFieldLabel("Stock");

ListField<Stock> from = lists.getFromList();
from.setDisplayField("name");
ListStore<Stock> store = new ListStore<Stock>();
store.setStoreSorter(new StoreSorter<Stock>());
store.add(TestData.getShortStocks());
from.setStore(store);
ListField<Stock> to = lists.getToList();
to.setDisplayField("name");
store = new ListStore<Stock>();
store.setStoreSorter(new StoreSorter<Stock>());
to.setStore(store);

panel.add(lists, new FormData("98%"));
panel.setWidth(550);

add(panel);

}

}
}

sven
23 Jul 2009, 9:35 AM
Please use the forumsearch before opening new reports. This was reported before.

hstang
23 Jul 2009, 9:59 AM
Apologies in advance but the closest post I've found related to this problem is http://extjs.com/forum/showthread.php?t=57409&highlight=ListField

and even with using setResizeFields(true), my problem persists.

The problem I'm describing is that the error icon could be seen moving from one location to the next creating a flicker response.

If this has already been addressed, could you describe what am I overlooking?

sven
23 Jul 2009, 10:05 AM
The problem is that if you want position something, you first need to display it. After that you can move it to the correct position.

I will look into a way to make it non flickering.

sven
23 Jul 2009, 10:23 AM
Ok, fixed in SVN

hstang
23 Jul 2009, 10:49 AM
That was fast! thanks, appreciate it, sven.