diff options
author | Petter Holmström <petter.holmstrom@outlook.com> | 2017-09-04 16:40:38 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-04 16:40:38 +0300 |
commit | a75117689e09e507c88bc6faa4144e56b041498b (patch) | |
tree | 383a98b5e730a764e1fc053be395ed9cfb04aecc /client | |
parent | 73c461e33634e3db54dd9189a5a212ec8d9212cd (diff) | |
download | vaadin-framework-a75117689e09e507c88bc6faa4144e56b041498b.tar.gz vaadin-framework-a75117689e09e507c88bc6faa4144e56b041498b.zip |
Force re-measurement of CheckBoxGroup and RadioButtonGroup (#9901)
The related tests have a workaround for another (Chrome specific) GridLayout bug #9921.
Those workarounds should be removed once that issue is fixed.
Fixes #9148
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/optiongroup/CheckBoxGroupConnector.java | 1 | ||||
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/optiongroup/CheckBoxGroupConnector.java b/client/src/main/java/com/vaadin/client/ui/optiongroup/CheckBoxGroupConnector.java index 18d4019611..1ab5c1d591 100644 --- a/client/src/main/java/com/vaadin/client/ui/optiongroup/CheckBoxGroupConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/optiongroup/CheckBoxGroupConnector.java @@ -89,6 +89,7 @@ public class CheckBoxGroupConnector items.add(item); } getWidget().buildOptions(items); + getLayoutManager().setNeedsMeasure(this); } @Override diff --git a/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java b/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java index 882a91aa26..21ffec2507 100644 --- a/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java +++ b/client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java @@ -121,6 +121,7 @@ public class RadioButtonGroupConnector options.add(dataSource.getRow(i)); } select.buildOptions(options); + getLayoutManager().setNeedsMeasure(this); updateSelectedItem(); } |