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

[LMS-1379] minor display improvement

SVN: 14720
parent fff70215
No related branches found
No related tags found
No related merge requests found
......@@ -176,9 +176,8 @@ class ColumnSettingsChooser
add(new SeparatorToolItem());
add(new WidgetComponent(createLink(Selectable.VISIBLE, false)));
add(new SeparatorToolItem());
// WORKAROUND to fix problems with layout when many filters are shown
// add(new WidgetComponent(createLink(Selectable.FILTER, true)));
// add(new SeparatorToolItem());
add(new WidgetComponent(createLink(Selectable.FILTER, true)));
add(new SeparatorToolItem());
add(new WidgetComponent(createLink(Selectable.FILTER, false)));
add(new FillToolItem());
Button up = new Button("Move Up");
......
......@@ -245,6 +245,7 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb
// copes well with cases when one filter widget changes into another.
private void updateFilterContainer(List<Widget> filterWidgets)
{
filterContainer.hide();
boolean changed = false;
filterContainer.disableEvents(true);
for (int i = 0; i < filterWidgets.size(); i++)
......@@ -271,6 +272,10 @@ public class FilterToolbar<T> extends ToolBar implements IDatabaseModificationOb
changed = true;
}
filterContainer.enableEvents(true);
if (filterContainer.getItemCount() > 0)
{
filterContainer.show();
}
if (changed)
{
// contentPanel of AbstractBrowserGrid is listening on this layout and synchronizes size
......
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