Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
whats-open
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Nicholas J Anderson
whats-open
Commits
b05b4cf3
Commit
b05b4cf3
authored
Oct 31, 2013
by
Renfred Harper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for scrolling grid-boxes
parent
665d560d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
website/static/css/style.css
website/static/css/style.css
+1
-0
website/static/js/grid.js
website/static/js/grid.js
+3
-2
No files found.
website/static/css/style.css
View file @
b05b4cf3
...
...
@@ -257,6 +257,7 @@ ul.ui-autocomplete {
#info-body
{
position
:
static
;
cursor
:
pointer
;
overflow-y
:
auto
;
}
#info-close
{
display
:
none
;
...
...
website/static/js/grid.js
View file @
b05b4cf3
...
...
@@ -2,7 +2,7 @@ var restaurants = [];
function
correct_grid_overflow
(){
// This function ensures that all text inside the grid-boxes display nicely on one line.
$
(
'
.restaurant
'
).
css
(
'
font-size
'
,
''
);
$
(
'
.restaurant
'
).
css
(
'
font-size
'
,
''
)
.
css
(
'
overflow-y
'
,
'
scroll
'
)
;
$
(
'
.restaurant
'
).
each
(
function
()
{
// Overflow is detected if the height of the box is less than
// the clipped scroll height of the box.
...
...
@@ -15,6 +15,7 @@ function correct_grid_overflow(){
$
(
this
).
css
(
'
padding-top
'
,
31
-
newSize
+
'
px
'
);
}
});
$
(
'
.restaurant
'
).
css
(
'
overflow-y
'
,
''
);
}
function
sort_restaurants
(
filtered_restaurants
)
{
...
...
@@ -51,7 +52,7 @@ function construct_grid(filtered_restaurants) {
);
});
$
(
'
#grid
'
).
show
();
correct_overflow
();
correct_
grid_
overflow
();
}
function
update_grid
(
restaurants
)
{
...
...
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