Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #32486 from justindarc/bug1215293
Browse files Browse the repository at this point in the history
Bug 1215293 - Music close icon next to search box would not close or …
  • Loading branch information
justindarc committed Oct 16, 2015
2 parents 7ff6fda + 1c9a6ed commit badac95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/music/views/home/view.css
Expand Up @@ -6,6 +6,10 @@ body[data-search="true"] {
overflow: hidden;
}

#tiles {
min-height: 100%;
}

.tile {
border-bottom: solid 1px var(--background);
box-sizing: border-box;
Expand Down
5 changes: 4 additions & 1 deletion apps/music/views/home/view.js
Expand Up @@ -19,7 +19,8 @@ var HomeView = View.extend(function HomeView() {

this.searchResults.addEventListener('close', () => {
this.client.method('searchClose');
document.body.removeAttribute('data-search');
document.body.dataset.search = false;
window.scrollTo(0, this.searchBox.HEIGHT);
});

this.searchResults.addEventListener('resultclick', (evt) => {
Expand All @@ -35,6 +36,8 @@ var HomeView = View.extend(function HomeView() {

this.searchResults.getItemImageSrc = (item) => this.getThumbnail(item.name);

window.scrollTo(0, this.searchBox.HEIGHT);

this.tiles.addEventListener('click', (evt) => {
var link = evt.target.closest('a[data-file-path]');
if (link) {
Expand Down

0 comments on commit badac95

Please sign in to comment.