Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zoheb Lokhandwala
whats-open
Commits
b05b4cf3
Commit
b05b4cf3
authored
Oct 31, 2013
by
Renfred Harper
Browse files
Fix for scrolling grid-boxes
parent
665d560d
Changes
2
Hide whitespace changes
Inline
Side-by-side
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