Skip to content
Snippets Groups Projects
Commit a6bf107e authored by buczekp's avatar buczekp
Browse files

fixed 'jumping' filter fields in firefox

SVN: 12796
parent b8a3eb16
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,8 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb ...@@ -63,7 +63,8 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb
filterSelectionWidget = filterSelectionWidget =
new FilterSelectionWidget(viewContext, gridId, displayTypeIDProvider); new FilterSelectionWidget(viewContext, gridId, displayTypeIDProvider);
filterContainer = new LayoutContainer(new FillLayout(Orientation.HORIZONTAL)); filterContainer = new LayoutContainer(new FillLayout(Orientation.HORIZONTAL));
AdapterToolItem filterTool = new AdapterToolItem(filterSelectionWidget); filterContainer.setLayoutOnChange(true); // fixes jumping filter fields in firefox
AdapterToolItem filterTool = new AdapterToolItem(filterSelectionWidget);
add(filterTool); add(filterTool);
add(new AdapterToolItem(filterContainer)); add(new AdapterToolItem(filterContainer));
applyTool = new TextToolItem(viewContext.getMessage(Dict.APPLY_FILTER)); applyTool = new TextToolItem(viewContext.getMessage(Dict.APPLY_FILTER));
...@@ -145,7 +146,6 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb ...@@ -145,7 +146,6 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb
Filter filter = filterSelectionWidget.tryGetSelected(); Filter filter = filterSelectionWidget.tryGetSelected();
if (filter != null) if (filter != null)
{ {
// TODO try to remove container and add a new one
filterContainer.removeAll(); filterContainer.removeAll();
if (filter.getName().equals(Filter.COLUMN_FILTER)) if (filter.getName().equals(Filter.COLUMN_FILTER))
{ {
...@@ -160,7 +160,6 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb ...@@ -160,7 +160,6 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb
filterContainer.add(new CustomFilterParameterWidget(parameter)); filterContainer.add(new CustomFilterParameterWidget(parameter));
} }
} }
filterContainer.layout(); // TODO move?
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment