Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
e34c5847
Commit
e34c5847
authored
Nov 02, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix responsive style of Pie, close #76
parent
ba3760a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/components/Charts/Pie/index.js
src/components/Charts/Pie/index.js
+1
-2
src/components/Charts/Pie/index.less
src/components/Charts/Pie/index.less
+2
-2
No files found.
src/components/Charts/Pie/index.js
View file @
e34c5847
...
@@ -40,8 +40,7 @@ class Pie extends Component {
...
@@ -40,8 +40,7 @@ class Pie extends Component {
window
.
removeEventListener
(
'
resize
'
,
this
.
resize
);
window
.
removeEventListener
(
'
resize
'
,
this
.
resize
);
return
;
return
;
}
}
// antd xs size
if
(
this
.
root
.
parentNode
.
clientWidth
<=
380
)
{
if
(
this
.
root
.
parentNode
.
clientWidth
<=
480
)
{
if
(
!
this
.
state
.
legendBlock
)
{
if
(
!
this
.
state
.
legendBlock
)
{
this
.
setState
({
this
.
setState
({
legendBlock
:
true
,
legendBlock
:
true
,
...
...
src/components/Charts/Pie/index.less
View file @
e34c5847
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
position: relative;
position: relative;
}
}
&.hasLegend .chart {
&.hasLegend .chart {
width: ~"calc(100% - 2
36
px)";
width: ~"calc(100% - 2
40
px)";
}
}
.legend {
.legend {
position: absolute;
position: absolute;
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
margin: 0 0 32px 0;
margin: 0 0 32px 0;
}
}
.legend {
.legend {
position:
static
;
position:
relative
;
transform: none;
transform: none;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment