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
5e7edb76
Commit
5e7edb76
authored
Nov 06, 2019
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mosys mobile: resize selected cell working via handler is working (still buggy)
parent
948a663d
Pipeline
#20079
passed with stage
in 4 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
partials/GridEditor.vue
partials/GridEditor.vue
+5
-2
No files found.
partials/GridEditor.vue
View file @
5e7edb76
...
...
@@ -448,6 +448,7 @@
handler
:
function
(
obj
)
{
if
(
this
.
showEditingCells
)
{
console
.
log
(
obj
)
this
.
mobileCellResize
(
this
.
mobileSelectedCell
,
obj
.
column
,
obj
.
row
)
}
},
deep
:
true
...
...
@@ -786,7 +787,8 @@
let
parsed
=
annotation
.
target
.
selector
.
parse
(),
[
x
,
y
,
w
,
h
]
=
parsed
.
xywh
console
.
log
(
'
mobileCellResize
'
,
w
,
h
)
/*
// ----- w
if (_w === -1) if (w > 1) w += _w
if (_w === 1 && x < this.grid.config.columns - w + 1) w += _w
...
...
@@ -794,11 +796,12 @@
// ----- h
if (_h === -1) if (h > 1) h += _h
if (_h === 1 && y < this.grid.config.rows - h + 1) h += _h
*/
// w += _w
// h += _h
const
value
=
{
xywh
:
[
x
,
y
,
w
,
h
]
}
const
value
=
{
xywh
:
[
x
,
y
,
_
w
,
_
h
]
}
annotation
.
target
.
selector
.
value
=
value
await
this
.
$store
.
dispatch
(
'
annotations/patch
'
,
[
annotation
.
id
,
{
target
:
{
selector
:
{
value
}
}
}])
...
...
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