From ad290f8c65057bdef33ec73cb49a8c6d10b9e356 Mon Sep 17 00:00:00 2001 From: michaelvogt Date: Wed, 3 Apr 2013 14:12:42 +0300 Subject: Fix for CheckBox and Layout (#11407) Change in CheckBoxConnector led to wrong enabled behaviour and addition to top coordinate to prevent scrollbars with VPopupCalendar Change-Id: I381ab7c8a605535280ae58716181ef4c346997f7 --- client/src/com/vaadin/client/ui/checkbox/CheckBoxConnector.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/com/vaadin/client/ui/checkbox/CheckBoxConnector.java b/client/src/com/vaadin/client/ui/checkbox/CheckBoxConnector.java index ebfda2d715..7c2052e6f1 100644 --- a/client/src/com/vaadin/client/ui/checkbox/CheckBoxConnector.java +++ b/client/src/com/vaadin/client/ui/checkbox/CheckBoxConnector.java @@ -92,7 +92,9 @@ public class CheckBoxConnector extends AbstractFieldConnector implements } getWidget().setRequired(isRequired()); - getWidget().setEnabled(!isReadOnly()); + if (isReadOnly()) { + getWidget().setEnabled(false); + } if (getIcon() != null) { if (getWidget().icon == null) { -- cgit v1.2.3