Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
86f3a0d7
Commit
86f3a0d7
authored
Mar 16, 2018
by
Sascha Herzinger
Browse files
Fixing critical bug that caused a resize loop for certain CSS props
parent
7c557424
Pipeline
#4132
passed with stages
in 7 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/vue/components/Chart.vue
View file @
86f3a0d7
...
...
@@ -25,8 +25,8 @@
},
methods
:
{
resize
()
{
const
width
=
this
.
$el
.
getBoundingClientRect
().
width
const
height
=
this
.
$el
.
getBoundingClientRect
().
height
const
width
=
this
.
$el
.
getBoundingClientRect
().
width
-
1
const
height
=
this
.
$el
.
getBoundingClientRect
().
height
-
1
const
fontSize
=
Math
.
ceil
((
height
<
width
?
height
:
width
)
/
50
)
this
.
$el
.
style
[
'
font-size
'
]
=
fontSize
+
'
pt
'
this
.
$emit
(
'
resize
'
,
width
,
height
)
...
...
@@ -43,7 +43,7 @@
.fjs-chart
width
:
100%
height
:
100%
bo
rder
:
2px
solid
rgba
(
0
,
0
,
0
,
0
)
bo
x-sizing
:
border-box
&
:hover
bo
rder
:
2px
solid
rgba
(
41
,
213
,
255
,
0
.3
)
bo
x-shadow
:
inset
0
0
0
2px
#29D5FF
</
style
>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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