Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
69f4103a
Commit
69f4103a
authored
Oct 09, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile temp cell: working positioning
parent
64e2a5ff
Pipeline
#16625
passed with stage
in 5 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
partials/GridEditor.vue
partials/GridEditor.vue
+15
-8
No files found.
partials/GridEditor.vue
View file @
69f4103a
...
...
@@ -104,7 +104,6 @@
//----- temporary cell (mobile)
.cell-item.cell-item-tmp-mobile(:style="mobileTempCellStyle(mobileTempCell)")
| blabla
// cell(:cell="tmpCell")
// ---------------------------------------------------------------------------------------------------------------
...
...
@@ -329,10 +328,17 @@
},
methods
:
{
panGrid
(
obj
)
{
console
.
log
(
'
hhhhhhhhhhhhhhhhh
'
,
obj
)
let
res
=
this
.
getGridPositionForEvent
(
obj
)
console
.
log
(
res
)
this
.
mobileTempCell
.
x
=
res
.
x
+
1
this
.
mobileTempCell
.
y
=
res
.
y
+
1
// console.log('**********', res)
// this.mobileTempCell.x = res.x
// this.mobileTempCell.y = res.y
if
(
obj
.
isFirst
)
{
this
.
mobileTempCell
.
x
=
res
.
x
this
.
mobileTempCell
.
y
=
res
.
y
}
this
.
mobileTempCell
.
width
=
res
.
x
-
this
.
mobileTempCell
.
x
+
1
this
.
mobileTempCell
.
height
=
res
.
y
-
this
.
mobileTempCell
.
y
+
1
},
async
cellHold
(
event
,
annotation
)
{
this
.
$store
.
commit
(
'
mosys/setEditingCells
'
,
''
)
...
...
@@ -771,7 +777,7 @@
_clientX
=
event
.
clientX
_clientY
=
event
.
clientY
}
if
(
event
.
position
.
left
&&
event
.
position
.
top
)
{
if
(
event
.
position
)
{
_clientX
=
event
.
position
.
left
_clientY
=
event
.
position
.
top
}
...
...
@@ -823,9 +829,9 @@
console
.
log
(
obj
)
return
{
'
grid-column-start
'
:
obj
.
x
,
'
grid-column-end
'
:
obj
.
width
,
'
grid-column-end
'
:
`span
${
obj
.
width
}
`
,
'
grid-row-start
'
:
obj
.
y
,
'
grid-row-end
'
:
obj
.
height
'
grid-row-end
'
:
`span
${
obj
.
height
}
`
}
},
getAnnotationStyle
(
annotation
)
{
...
...
@@ -939,5 +945,6 @@
top 0px
.cell-item-tmp-mobile
background-color rgba(0, 0, 255, .25)
background-color rgba(0, 0, 255, .15)
backdrop-filter blur(0px)
</
style
>
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