Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
4c5e6ea2
Commit
4c5e6ea2
authored
7 years ago
by
Lukas F. Hartmann
Browse files
Options
Download
Email Patches
Plain Diff
fix auto layout button
parent
5f4d41f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/javascripts/spacedeck_board_artifacts.js
+5
-3
public/javascripts/spacedeck_board_artifacts.js
with
5 additions
and
3 deletions
+5
-3
public/javascripts/spacedeck_board_artifacts.js
+
5
-
3
View file @
4c5e6ea2
...
...
@@ -587,7 +587,7 @@ var SpacedeckBoardArtifacts = {
var
selected
=
this
.
selected_artifacts
();
if
(
selected
.
length
<
2
)
return
;
var
sorted
=
_
.
sortBy
(
selected
,
function
(
a
)
{
return
a
.
x
+
a
.
y
*
this
.
active_space
.
advanced
.
width
}.
bind
(
this
));
var
sorted
=
_
.
sortBy
(
selected
,
function
(
a
)
{
return
a
.
x
+
a
.
y
*
this
.
active_space
.
width
}.
bind
(
this
));
var
minx
=
sorted
[
0
].
x
;
var
miny
=
sorted
[
0
].
y
;
...
...
@@ -596,11 +596,13 @@ var SpacedeckBoardArtifacts = {
var
blocks
=
[];
var
padding
=
10
;
for
(
var
i
=
0
;
i
<
sorted
.
length
;
i
++
)
{
var
a
=
sorted
[
i
];
blocks
.
push
({
w
:
a
.
w
,
h
:
a
.
h
,
w
:
a
.
w
+
padding
,
h
:
a
.
h
+
padding
,
a
:
a
});
}
...
...
This diff is collapsed.
Click to expand it.
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