Skip to content

Commit a4752a6

Browse files
authored
fix: axis旋转情况布局计算 (#2098)
1 parent b90826d commit a4752a6

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed
165 Bytes
Loading

packages/f2/test/components/axis/axis.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ describe('Axis 轴', () => {
180180
// rotate: -Math.PI / 2,
181181
// @ts-ignore
182182
transform: 'rotate(-90deg)',
183-
// textAlign: 'end',
183+
align: 'end',
184184
textBaseline: 'middle',
185185
},
186186
}}
-244 Bytes
Loading

packages/f2/test/components/line/line.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,7 @@ describe('折线图', () => {
11041104
field="year"
11051105
style={{
11061106
label: {
1107-
align: 'center',
1108-
textAlign: 'start',
1107+
align: 'start',
11091108
textBaseline: 'middle',
11101109
transform: 'rotate(90deg)',
11111110
},

0 commit comments

Comments
 (0)