Commit bf084ac7 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix minor bugs identified by 'devmode'

Change-Id: Ic50a603b585b54e16719505e05972f614888aa93
parent 0e63fdc4
...@@ -47,7 +47,7 @@ public final class MockCheckBox extends MockToggleBase<CheckBox> { ...@@ -47,7 +47,7 @@ public final class MockCheckBox extends MockToggleBase<CheckBox> {
// Get the Element from the CheckBox. // Get the Element from the CheckBox.
// Call DOM.clone to make a deep clone of that element. // Call DOM.clone to make a deep clone of that element.
// Pass that cloned element to the super constructor. // Pass that cloned element to the super constructor.
super(DOM.clone(ptb.getElement(), true)); super(DOM.clone(ptb.getElement().getFirstChildElement(), true));
} }
} }
......
...@@ -63,7 +63,7 @@ public final class MockSwitch extends MockToggleBase<HorizontalPanel> { ...@@ -63,7 +63,7 @@ public final class MockSwitch extends MockToggleBase<HorizontalPanel> {
*/ */
static class ClonedSwitch extends InlineHTML { static class ClonedSwitch extends InlineHTML {
ClonedSwitch(HorizontalPanel ptb) { ClonedSwitch(HorizontalPanel ptb) {
super(DOM.clone(ptb.getElement(), true)); super(DOM.clone(ptb.getWidget(0).getElement(), true));
} }
} }
......
...@@ -25,7 +25,7 @@ public class TextAreaPropertyEditor extends TextPropertyEditorBase { ...@@ -25,7 +25,7 @@ public class TextAreaPropertyEditor extends TextPropertyEditorBase {
public TextAreaPropertyEditor() { public TextAreaPropertyEditor() {
super(new TextArea()); super(new TextArea());
textEdit.getElement().getStyle().setProperty("min-height", MIN_CSS_HEIGHT); textEdit.getElement().getStyle().setProperty("minHeight", MIN_CSS_HEIGHT);
textEdit.getElement().getStyle().setProperty("max-width", MAX_CSS_WIDTH); textEdit.getElement().getStyle().setProperty("maxWidth", MAX_CSS_WIDTH);
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment