From 286fa6b9b156afce477b654fa680d1dca11fac9f Mon Sep 17 00:00:00 2001 From: Erik Derohanian Date: Thu, 6 Dec 2012 15:14:37 -0500 Subject: [PATCH] Fixed blurry trapezoid in Firefox, and enable AA of the trapezoid in chrome --- jbrowse_conf.json | 2 +- src/JBrowse/Browser.js | 6 +++--- src/jszlib | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jbrowse_conf.json b/jbrowse_conf.json index 4fcfbb09ce..2a2589e74f 100644 --- a/jbrowse_conf.json +++ b/jbrowse_conf.json @@ -13,4 +13,4 @@ // the variable below does nothing placeholder: 1 -} \ No newline at end of file +} diff --git a/src/JBrowse/Browser.js b/src/JBrowse/Browser.js index ad1984986c..96e4e10c69 100644 --- a/src/JBrowse/Browser.js +++ b/src/JBrowse/Browser.js @@ -237,7 +237,6 @@ Browser.prototype.initView = function() { //create location trapezoid if( this.config.show_nav ) { this.locationTrap = dojo.create('div', {className: 'locationTrap'}, topPane ); - this.locationTrap.className = "locationTrap"; } // hook up GenomeView @@ -606,8 +605,8 @@ Browser.prototype.onFineMove = function(startbp, endbp) { + "left: " + this.view.overviewBox.l + "px;" + "width: " + (trapRight - trapLeft) + "px;" + "border-bottom: " + this.view.locationTrapHeight + "px solid #A9C6EB;" - + "border-left: " + trapLeft + "px solid white;" - + "border-right: " + (this.view.overviewBox.w - trapRight) + "px solid white;" + + "border-left: " + trapLeft + "px solid transparent;" + + "border-right: " + (this.view.overviewBox.w - trapRight) + "px solid transparent;" + "border-top: 0px dotted;"; this.locationTrap.style.cssText = locationTrapStyle; @@ -1405,6 +1404,7 @@ Browser.prototype.createNavBox = function( parent ) { id: "location", name: "location", style: { width: locLength+'ex' }, + style: { width: '25ex', height: '20px' }, maxLength: 400, store: this._makeLocationAutocompleteStore(), searchAttr: "name" diff --git a/src/jszlib b/src/jszlib index 450d8f1ff6..fb8037c428 160000 --- a/src/jszlib +++ b/src/jszlib @@ -1 +1 @@ -Subproject commit 450d8f1ff648928959ac909a98f0836932ed33be +Subproject commit fb8037c4285bcba79ce5d27628641fb03397a89a