Commit Graph

7 Commits

Author SHA1 Message Date
Emmanuel Kasper
cee050e2a1 ext6migrate: fix minor selection bug in the ComboGrid
up to now we were only updating the picker selection when the picker
was created, which means that subsequent changes in the text field were
not propagated to the drop-down list

This patch creates a private syncSelection() method which is called each time
the picker is shown
This is roughly based on the ExtJS 4 ComboBox behaviour
2016-02-04 18:07:00 +01:00
Emmanuel Kasper
61bd788866 ext6migrate: fix IPRefSelector ComboGrid
The IPrefSelector ComboGrid can have selected values which are not backed
by the component store, ie the store only contains IP aliases, but
the ComboGrid can contain an IP adress not registered as an IP alias.

In that case we should not try to update the selection in the dropdown,
as the dropdown only knows about the component store.

Implementation is similar to the syncSelection() private method of the
ExtJS4 ComboBox.
2016-02-04 18:05:54 +01:00
Emmanuel Kasper
ed9ea0f563 Apply listConfig parameters when the picker is created, not when the component is created.
This fix the problem that multiple ComboGrids were displaying the same listConfig.
2016-01-22 11:24:29 +01:00
Dietmar Maurer
cbaae277f0 cleanup previous patch 2016-01-22 11:24:29 +01:00
Emmanuel Kasper
effd0b0a8b ext6migrate: Update our ComboGrid component to work with ExtJS6
Instead of extending the framework ComboBox, we extend the abstract
parent class Picker, so we don't rely on private methods ( and hopefull survive the
next ExtJS upgrade )

Usability improvement:
The selection model is now a checkboxmodel, which makes more clear to the user that
we can select more than one element in the list.
2016-01-22 11:24:28 +01:00
Emmanuel Kasper
2ad16f261f Do not try to enforce a Picker size manually, let the framework do it
The Picker of the ComboBox, has by default a maxHeight of 300 px. If the list of elements is bigger that 300 pixels, then a scrollbar will be added.
This behaviour was broken with ExtJS4, but now works correctly with ExtJS6.
2016-01-22 11:24:25 +01:00
Dietmar Maurer
bac5bd135c rename manager5 to manager6 2016-01-22 11:24:10 +01:00