Skip to content

Commit

Permalink
Added scrollbars to the profiles list so it's never taller than the i…
Browse files Browse the repository at this point in the history
…frame.
  • Loading branch information
georgebrock committed May 13, 2009
1 parent 7eb5b03 commit b42872e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
14 changes: 9 additions & 5 deletions xfndiscovery.css
Expand Up @@ -63,8 +63,6 @@
#xfn-discovery h5
{
width:auto;
float:left;
clear:left;
font-size:1em;
margin:1em 0 0;
padding:0 1em;
Expand All @@ -82,14 +80,20 @@
cursor:pointer;
}

#xfn-discovery ul.profiles
#xfn-discovery div.profiles-container
{
margin:1em 0 0 0;
padding:0;
list-style:none;
width:25%;
float:left;
clear:left;
height:480px;
overflow:auto;
}

#xfn-discovery ul.profiles
{
padding:0;
list-style:none;
}

#xfn-discovery ul.profiles a
Expand Down
9 changes: 6 additions & 3 deletions xfndiscovery.user.js
Expand Up @@ -272,9 +272,12 @@ XFNDiscovery.UI = {
.append("<h4>More user profiles</h4>")
.append($iframe)
.append($iframeAlternative)
.append($profileList)
.append($unknownTitle)
.append($unknownProfileList);
.append(
$("<div></div>")
.addClass("profiles-container")
.append($profileList)
.append($unknownTitle)
.append($unknownProfileList));

for(var i = 0, p; i < XFNDiscovery.profiles.length; i++)
{
Expand Down

0 comments on commit b42872e

Please sign in to comment.