Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
4c5e8967
Commit
4c5e8967
authored
Dec 19, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly resize sidebare when add stickybar - closes #7
parent
3741370d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
debomatic-webui/public/javascripts/page_distribution.js
debomatic-webui/public/javascripts/page_distribution.js
+8
-3
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+1
-0
No files found.
debomatic-webui/public/javascripts/page_distribution.js
View file @
4c5e8967
...
...
@@ -503,7 +503,7 @@ function Page_Distrubion(socket) {
init
:
function
()
{
if
(
sidebarOffset
===
0
)
return
;
if
(
$
(
window
).
scrollTop
()
>
sidebarOffset
)
{
if
(
$
(
window
).
scrollTop
()
>
sidebarOffset
&&
$
(
'
#main
'
).
height
()
>
$
(
'
#sticky
'
).
height
()
)
{
sticky
.
show
();
}
else
{
sticky
.
hide
();
...
...
@@ -523,11 +523,16 @@ function Page_Distrubion(socket) {
sticky
.
start
();
},
show
:
function
()
{
$
(
'
#sticky-package
'
).
fadeIn
();
if
(
config
.
preferences
.
sidebar
)
{
debug
(
2
,
'
showing sticky
'
);
if
(
$
(
window
).
height
()
<
$
(
'
#sticky
'
).
height
())
{
var
size
=
$
(
"
#sticky-package
"
).
position
().
top
;
debug
(
2
,
'
sticky too tall - resizing
'
,
size
);
$
(
'
#sticky
'
).
height
(
size
);
}
$
(
'
#sticky
'
).
addClass
(
'
fixed
'
);
}
debug
(
2
,
'
showing sticky
'
);
$
(
'
#sticky-package
'
).
fadeIn
();
},
hide
:
function
()
{
$
(
'
#sticky
'
).
removeClass
(
'
fixed
'
);
...
...
debomatic-webui/public/stylesheets/style.css
View file @
4c5e8967
...
...
@@ -77,6 +77,7 @@ aside#sidebar .fixed {
position
:
fixed
;
min-width
:
220px
!important
;
top
:
0
;
overflow
:
auto
;
}
#sticky-package
{
...
...
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