Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
dab8d48f
Commit
dab8d48f
authored
Jun 08, 2018
by
Sascha Herzinger
Browse files
forcing table to stay inbounds
parent
c73a251b
Pipeline
#5302
passed with stages
in 5 minutes and 58 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/vue/charts/Volcanoplot.vue
View file @
dab8d48f
...
@@ -360,8 +360,12 @@
...
@@ -360,8 +360,12 @@
handler
:
function
(
newSelection
)
{
handler
:
function
(
newSelection
)
{
const
tableWidth
=
this
.
$refs
.
selectionTable
.
getBoundingClientRect
().
width
const
tableWidth
=
this
.
$refs
.
selectionTable
.
getBoundingClientRect
().
width
const
selectionWidth
=
newSelection
.
x1
-
newSelection
.
x0
const
selectionWidth
=
newSelection
.
x1
-
newSelection
.
x0
this
.
selectionTable
.
left
=
newSelection
.
x0
-
(
tableWidth
/
2
-
selectionWidth
/
2
)
let
left
=
newSelection
.
x0
-
(
tableWidth
/
2
-
selectionWidth
/
2
)
this
.
selectionTable
.
top
=
newSelection
.
y1
const
top
=
newSelection
.
y1
left
=
left
<
0
?
0
:
left
left
=
left
+
tableWidth
>
this
.
padded
.
width
?
this
.
padded
.
width
-
tableWidth
:
left
this
.
selectionTable
.
left
=
left
this
.
selectionTable
.
top
=
top
}
}
}
}
}
}
...
...
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