Skip to content

Commit

Permalink
PATCH: fix icon rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtil committed Jan 5, 2022
1 parent f8b8e23 commit 7ffbcd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,17 @@ export default {
},
style() {
const pixelSize = this.getPixelSize(this.size);
return {
const style = {
width: `${pixelSize}px`,
minWidth: `${pixelSize}px`,
height: `${pixelSize}px`,
minHeight: `${pixelSize}px`,
margin: `${this.margin}`,
transform: `rotate(${this.rotate}deg)`,
};
if (this.rotation > 0) {
style.transform = `rotate(${this.rotate}deg)`;
}
return style;
},
},
methods: {
Expand Down

0 comments on commit 7ffbcd8

Please sign in to comment.