Skip to content

Commit

Permalink
bugfixes for IE7 and IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Aug 13, 2012
1 parent b03438b commit f342888
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/JBrowse/GenomeView.js
Expand Up @@ -290,13 +290,13 @@ GenomeView.prototype._updateVerticalScrollBar = function( newDims ) {
var heightAdjust = this.staticTrack ? -this.staticTrack.div.offsetHeight : 0;
var trackPaneHeight = newDims.height + heightAdjust;
this.verticalScrollBar.container.style.height = trackPaneHeight+'px';
var markerHeight = newDims.height / this.containerHeight * 100;
var markerHeight = newDims.height / (this.containerHeight||1) * 100;
this.verticalScrollBar.positionMarker.style.height = markerHeight > 0.5 ? markerHeight+'%' : '1px';
this.verticalScrollBar.container.style.display = newDims.height / (this.containerHeight||1) > 0.98 ? 'none' : 'block';
}

if( typeof newDims.y == 'number' || typeof newDims.height == 'number' ) {
this.verticalScrollBar.positionMarker.style.top = ( (newDims.y || this.getY() || 0 ) / (this.containerHeight||1) * 100 )+'%';
this.verticalScrollBar.positionMarker.style.top = ( (newDims.y || this.getY() || 0) / (this.containerHeight||1) * 100 )||0+'%';
}

};
Expand Down
2 changes: 1 addition & 1 deletion src/JBrowse/Model/modEncodeTrackMetadata.js
Expand Up @@ -61,7 +61,7 @@ var M = declare( null,
load: dojo.hitch(this, function( data ) {
var items = [];
dojo.forEach( data.items || [], function(i) {
if( Array.isArray( i.Tracks ) )
if( dojo.isArray( i.Tracks ) )
dojo.forEach( i.Tracks, function(trackName) {
var item = dojo.clone(i);
item.key = item.label;
Expand Down
4 changes: 2 additions & 2 deletions src/JBrowse/Store/TrackMetaData.js
Expand Up @@ -388,7 +388,7 @@ var Meta = declare( null,
var query = dojo.clone( keywordArgs.query || {} );
// coerce query arguments to arrays if they are not already arrays
dojo.forEach( dojof.keys( query ), function(qattr) {
if( ! Array.isArray( query[qattr] ) ) {
if( ! dojo.isArray( query[qattr] ) ) {
query[qattr] = [ query[qattr] ];
}
},this);
Expand Down Expand Up @@ -665,4 +665,4 @@ var Meta = declare( null,
});
dojo.extend( Meta, simpleFetch );
return Meta;
});
});
2 changes: 1 addition & 1 deletion src/JBrowse/View/TrackList/Faceted.js
Expand Up @@ -107,7 +107,7 @@ return declare( 'JBrowse.View.TrackList.Faceted', null,
// then convert that array to a function
if( typeof filter == 'string' )
filter = [filter];
if( Array.isArray( filter ) ) {
if( dojo.isArray( filter ) ) {
filter = function( store, facetName) {
return dojo.some( filter, function(fn) {
return facetName == fn;
Expand Down

0 comments on commit f342888

Please sign in to comment.