Skip to content

Commit

Permalink
tweak tracksel show/hide buttons: add arrow icons, change positions t…
Browse files Browse the repository at this point in the history
…o be on the edges
  • Loading branch information
rbuels committed May 14, 2012
1 parent 6f63350 commit c4a710e
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
24 changes: 21 additions & 3 deletions faceted_track_selector.css
Expand Up @@ -17,7 +17,7 @@
top: 0;
left: 0;
height: 100%;
width: 93%;
width: 95%;

font-size: 120%;
}
Expand Down Expand Up @@ -79,8 +79,19 @@
font-size: 180%;
}

#faceted_tracksel_top button.faceted_tracksel_on_off {
padding: 5px;
#faceted_tracksel button.faceted_tracksel_on_off {
padding: 5px 4px;

position: absolute;
top: 1.8em;
right: -2px;
width: 7%;

z-index: 5;
}
#faceted_tracksel button.faceted_tracksel_on_off div {
display: inline-block;
vertical-align: middle;
}

#faceted_tracksel_top div.topLink {
Expand Down Expand Up @@ -160,4 +171,11 @@
/* Button that we inject into the navbox for turning the track
selector on and off. */
#navbox button.faceted_tracksel_on_off {
position: absolute;
top: 2em;
left: -5px;
}
#navbox button.faceted_tracksel_on_off > * {
display: inline-block;
vertical-align: middle;
}
Binary file added img/left_arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/right_arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions js/View/TrackList/Faceted.js
Expand Up @@ -137,6 +137,18 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
},
document.body );

dojo.create('button',
{
className: 'faceted_tracksel_on_off',
innerHTML: '<div style="width: 13%"><img src="img/left_arrow.png"></div>'
+ '<div style="width: 85%">Back to browser</div>',
style: {
}
},
this.containerElem
);


this.mainContainer = new dijit.layout.BorderContainer(
{ design: 'headline', gutters: false },
this.containerElem
Expand All @@ -145,7 +157,6 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
{ region: 'top',
id: "faceted_tracksel_top",
content: '<div class="title">Select Tracks</div> '
+ '<button class="faceted_tracksel_on_off">Back to browser</button>'
+ '<div class="topLink" style="cursor: help"><a title="Track selector help">Help</a></div>'
});
dojo.query('div.topLink a[title="Track selector help"]',this.topPane.domNode)
Expand All @@ -172,7 +183,8 @@ dojo.declare( 'JBrowse.View.TrackList.Faceted', null,
this.browser.navbox.insertBefore(
dojo.create('button', {
className: 'faceted_tracksel_on_off',
innerHTML: 'Select tracks'
innerHTML: '<div style="width: 7em">Select tracks</div>'
+'<div style="width: 10px;"><img src="img/right_arrow.png"></div>'
}),
this.browser.navbox.firstChild
);
Expand Down

0 comments on commit c4a710e

Please sign in to comment.