My angular-formly forms is looking weird after upgrading. All my forms are now packed down to 50% of the view and seems to not care about columns. As the screenshot reveals the check boxes is not all left even though they are placed in columns. Here is a snippet of my code. Before upgrading the input fields and check boxes was all in 50% cols looking neat. Now its like all is pressed to the left.
vm.fields = [
{
"elementAttributes": {
layout: "row",
"layout-sm": "column"
},
"fieldGroup": [
{
"elementAttributes": {
//using empty flex tag because className with flex in each element does not work.
flex: ''
},
key: 'user_name',
type: 'input',
templateOptions: {
type: 'text',
label: 'Brugernavn',
required: true,
focus: true
}
},
{
"elementAttributes": {
flex: ''
},
key: 'email',
type: 'input',
templateOptions: {
type: 'email',
label: 'E-mail',
required: true
}
}]
},
{
"elementAttributes": {
layout: "row",
"layout-sm": "column"
},
"fieldGroup": [
{
"elementAttributes": {
flex: ''
},
key: 'first_name',
type: 'input',
templateOptions: {
type: 'text',
label: 'Fornavn',
required: true
}
},
{
"elementAttributes": {
flex: ''
},
key: 'last_name',
type: 'input',
templateOptions: {
type: 'text',
label: 'Efternavn',
required: true
}
}]
},
{
key: 'employee_no',
type: 'input',
templateOptions: {
type: 'number',
label: 'Medarbejdernummer',
required: true
}
},
{
"elementAttributes": {
layout: "column"
},
"fieldGroup": [
{
"elementAttributes": {
//using empty flex tag because className with flex in each element does not work.
flex: ''
},
template: '<h3>Ansvarsområder</h3>'
},
{
"elementAttributes": {
layout: "row",
"layout-sm": "column"
},
"fieldGroup": [
{
"elementAttributes": {
flex: ''
},
type: 'checkbox',
key: 'admin_role',
templateOptions: {
label: 'Administrator'
}
},
{
"elementAttributes": {
flex: ''
},
type: 'checkbox',
key: 'high_pressure_inspector_role',
templateOptions: {
label: 'Højtryksinspektør'
}
}]
},
{
"elementAttributes": {
layout: "row",
"layout-sm": "column"
},
"fieldGroup": [
{
"elementAttributes": {
flex: ''
},
type: 'checkbox',
key: 'preparation_employee_role',
templateOptions: {
label: 'Klargøringsmedarbejder'
}
},
{
"elementAttributes": {
flex: ''
},
type: 'checkbox',
key: 'lpg_inspector_role',
templateOptions: {
label: 'LPG inspektør'
}
}]
},
{
type: 'checkbox',
key: 'lpg_employee_role',
templateOptions: {
label: 'LPG medarbejder'
}
}]
},