Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Q
Quasar Components MoSys
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Compare Revisions
3347d83b1b0c8fd5b1d45415d8fc6fba4b5123f5...4b0592911db10e8bec4a473c8d224fa5a03202bd
Source
4b0592911db10e8bec4a473c8d224fa5a03202bd
Select Git revision
...
Target
3347d83b1b0c8fd5b1d45415d8fc6fba4b5123f5
Select Git revision
Compare
Commits (2)
clean-up panGrid()
· 9e7a1ad3
christianrhansen
authored
Nov 07, 2019
9e7a1ad3
handleResizeCell structure
· 4b059291
christianrhansen
authored
Nov 07, 2019
4b059291
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
partials/GridEditor.vue
partials/GridEditor.vue
+20
-18
No files found.
partials/GridEditor.vue
View file @
4b059291
...
@@ -467,9 +467,6 @@
...
@@ -467,9 +467,6 @@
resizeHandler
=
this
.
cellHandler
.
resize
,
resizeHandler
=
this
.
cellHandler
.
resize
,
tempCell
=
this
.
mobileTempCell
tempCell
=
this
.
mobileTempCell
resizeHandler
.
gridPosition
.
row
=
pos
.
y
resizeHandler
.
gridPosition
.
column
=
pos
.
x
if
(
obj
.
isFirst
)
{
if
(
obj
.
isFirst
)
{
this
.
activeHandler
=
true
this
.
activeHandler
=
true
tempCell
.
show
=
true
tempCell
.
show
=
true
...
@@ -481,6 +478,8 @@
...
@@ -481,6 +478,8 @@
resizeHandler
.
x
=
pos
.
ox
resizeHandler
.
x
=
pos
.
ox
resizeHandler
.
y
=
pos
.
oy
resizeHandler
.
y
=
pos
.
oy
resizeHandler
.
gridPosition
.
row
=
pos
.
y
resizeHandler
.
gridPosition
.
column
=
pos
.
x
if
(
obj
.
isFinal
)
{
if
(
obj
.
isFinal
)
{
this
.
activeHandler
=
false
this
.
activeHandler
=
false
...
@@ -500,27 +499,30 @@
...
@@ -500,27 +499,30 @@
},
},
panGrid
(
obj
)
{
panGrid
(
obj
)
{
if
(
this
.
cachedNewCell
&&
!
this
.
mobileTempCell
.
onGrid
)
{
if
(
this
.
cachedNewCell
&&
!
this
.
mobileTempCell
.
onGrid
)
{
// console.log('hhhhhhhhhhhhhhhhh', obj)
let
let
res
=
this
.
getGridPositionForEvent
(
obj
)
pos
=
this
.
getGridPositionForEvent
(
obj
),
fullCell
=
this
.
gridDimensions
.
full
.
cell
,
tempCell
=
this
.
mobileTempCell
,
moveHandler
=
this
.
cellHandler
.
move
,
resizeHandler
=
this
.
cellHandler
.
resize
if
(
obj
.
isFirst
)
{
if
(
obj
.
isFirst
)
{
t
his
.
mobileT
empCell
.
show
=
true
tempCell
.
show
=
true
t
his
.
mobileTempCell
.
x
=
re
s
.
x
t
empCell
.
x
=
po
s
.
x
t
his
.
mobileTempCell
.
y
=
re
s
.
y
t
empCell
.
y
=
po
s
.
y
}
}
t
his
.
mobileTempCell
.
width
=
res
.
x
-
this
.
mobileT
empCell
.
x
+
1
t
empCell
.
width
=
pos
.
x
-
t
empCell
.
x
+
1
t
his
.
mobileTempCell
.
height
=
res
.
y
-
this
.
mobileT
empCell
.
y
+
1
t
empCell
.
height
=
pos
.
y
-
t
empCell
.
y
+
1
if
(
obj
.
isFinal
)
{
if
(
obj
.
isFinal
)
{
this
.
mobileTempCell
.
onGrid
=
true
tempCell
.
onGrid
=
true
// this.addMobileCell(obj)
// this.mobileTempCell.show = false
moveHandler
.
x
=
fullCell
.
width
*
(
tempCell
.
x
-
1
)
+
8
+
20
this
.
cellHandler
.
move
.
x
=
this
.
gridDimensions
.
full
.
cell
.
width
*
(
this
.
mobileTempCell
.
x
-
1
)
+
8
+
20
moveHandler
.
y
=
fullCell
.
height
*
(
tempCell
.
y
-
1
)
+
8
+
20
this
.
cellHandler
.
move
.
y
=
this
.
gridDimensions
.
full
.
cell
.
height
*
(
this
.
mobileTempCell
.
y
-
1
)
+
8
+
20
resizeHandler
.
x
=
fullCell
.
width
*
pos
.
x
-
8
-
20
this
.
cellHandler
.
resize
.
x
=
this
.
gridDimensions
.
full
.
cell
.
width
*
res
.
x
-
8
-
20
resizeHandler
.
y
=
fullCell
.
height
*
pos
.
y
-
8
-
20
this
.
cellHandler
.
resize
.
y
=
this
.
gridDimensions
.
full
.
cell
.
height
*
res
.
y
-
8
-
20
}
}
}
}
},
},
...
...