Skip to content

Commit

Permalink
ver. 0.2.35
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Mar 12, 2018
1 parent 0f0293b commit 4a60bec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# history

## 0.2.24 / 2018-03-12

* `CHANGED` change grid percent to match the expected behaviour

## 0.2.33 / 2018-01-03

* `NEW` support new prop `gridLayout`
Expand Down
2 changes: 1 addition & 1 deletion demo/FormFieldDemo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Demo extends React.Component {
jsxlabel="字很多字很多字很多字很多字"
placeholder="111"
jsxtips="提示"
// gridLayout={[8, 14]}
gridLayout={[6, 12]}
labelMatchInputHeight={false}
// verticalAlign
/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-form-field",
"version": "0.2.34",
"version": "0.2.35",
"description": "uxcore-form-field component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-form-field.git",
"author": "eternalsky",
Expand Down
2 changes: 1 addition & 1 deletion src/FormField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FormField extends React.Component {
const me = this;
const gridLayout = me.props.gridLayout || me.props.jsxGridLayout;
const newGrid = [gridLayout[0] || 6, gridLayout[1] || 12];
return `${(newGrid[index] * 100) / 24}%`;
return `${(newGrid[index] * 100) / (24 - (index === 1 ? newGrid[0] : 0))}%`;
}

getSize() {
Expand Down

0 comments on commit 4a60bec

Please sign in to comment.