lib/glimmer/swt/checkbox_proxy.rb in glimmer-dsl-opal-0.28.3 vs lib/glimmer/swt/checkbox_proxy.rb in glimmer-dsl-opal-0.29.0
- old
+ new
@@ -55,13 +55,14 @@
end
def dom
check_text = @text
check_id = id
- check_style = css
+ check_style = "min-width: 27px; #{css}"
check_class = name
check_selection = @selection
- options = {type: 'checkbox', id: check_id, name: parent.id, style: check_style, class: check_class, value: check_text, style: 'min-width: 27px;'}
+ # TODO `:style` key is duplicated twice
+ options = {type: 'checkbox', id: check_id, name: parent.id, style: check_style, class: check_class, value: check_text}
options[checked: 'checked'] if check_selection
@dom ||= html {
span {
input(options) {
}