Skip to content

Commit

Permalink
Merge pull request #4 from flyingcarpet-network/feature/fix-polygon-c…
Browse files Browse the repository at this point in the history
…ontrol-positioning

position polygon controls to improve UX
  • Loading branch information
bneiluj authored Nov 9, 2018
2 parents 76e260b + e10d80b commit db7982f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/PolygonControls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const Container = styled.div`
0px 1px 5px 0px rgba(0, 0, 0, 0.2),
0px 2px 2px 0px rgba(0, 0, 0, 0.14),
0px 3px 1px -2px rgba(0, 0, 0, 0.12);
margin-top: 16px;
transform-origin: top left;
animation: ${fadeInScale} 0.31s cubic-bezier(0.175, 0.885, 0.32, 1.275);
Expand Down Expand Up @@ -61,7 +60,7 @@ function PolygonControls (props) {
style={{
position: 'absolute',
left: `${getHorizontallyCentralPoint(geometry.points)}%`,
top: `${getVerticallyLowestPoint(geometry.points)}%`,
top: `${(getVerticallyLowestPoint(geometry.points) + 10)}%`,
...props.style
}}
>
Expand Down

0 comments on commit db7982f

Please sign in to comment.