Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
b347ca49
Commit
b347ca49
authored
Aug 30, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed align buttons positions
parent
3ec0d640
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
ui_align.js
js/ui_align.js
+21
-14
ui_menu.js
js/ui_menu.js
+1
-0
No files found.
js/ui_align.js
View file @
b347ca49
...
@@ -48,20 +48,7 @@ function align_init(){
...
@@ -48,20 +48,7 @@ function align_init(){
x3dom_align_hll
();
x3dom_align_hll
();
});
});
var
pos
=
$
(
"#align_button"
).
position
();
align_position
();
var
width
=
$
(
"#align_button"
).
width
();
$
(
"#align_button_heading"
).
css
({
position
:
"absolute"
,
top
:
pos
.
top
+
"px"
,
left
:
-
(
width
+
2
)
+
"px"
});
$
(
"#align_button_location"
).
css
({
position
:
"absolute"
,
top
:
pos
.
top
+
"px"
,
left
:
-
(
2
*
(
width
+
2
))
+
"px"
});
$
(
"#align_button_heading"
).
on
(
"click"
,
function
(){
$
(
"#align_button_heading"
).
on
(
"click"
,
function
(){
x3dom_align_hll2
();
x3dom_align_hll2
();
...
@@ -83,6 +70,26 @@ function align_init(){
...
@@ -83,6 +70,26 @@ function align_init(){
}
}
// position extra buttons
function
align_position
(){
var
pos
=
$
(
"#align_button"
).
position
();
var
width
=
$
(
"#align_button"
).
width
();
$
(
"#align_button_heading"
).
css
({
position
:
"absolute"
,
top
:
pos
.
top
+
"px"
,
left
:
-
(
width
+
2
)
+
"px"
});
$
(
"#align_button_location"
).
css
({
position
:
"absolute"
,
top
:
pos
.
top
+
"px"
,
left
:
-
(
2
*
(
width
+
2
))
+
"px"
});
}
/*
/*
* Check which markers need to be moved to have both 3d and map coorinates
* Check which markers need to be moved to have both 3d and map coorinates
* returns false if yes
* returns false if yes
...
...
js/ui_menu.js
View file @
b347ca49
...
@@ -197,6 +197,7 @@ function controls_showhide(){
...
@@ -197,6 +197,7 @@ function controls_showhide(){
$
(
".edit"
).
hide
();
$
(
".edit"
).
hide
();
}
else
{
}
else
{
$
(
".edit"
).
show
();
$
(
".edit"
).
show
();
align_position
();
}
}
}
}
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