opencb / jsorolla

JSorolla is a JavaScript Library for biological and genomic data visualization
http://docs.opencb.org/display/jsorolla
Apache License 2.0
42 stars 29 forks source link

Change to use the genome browser with a higher jquery version #81

Open agaor opened 6 years ago

agaor commented 6 years ago

Good afternoon, old colleagues, The jsorolla have a dependency to jquery ~2.2.4, for higher jquery when use a feaureRender not show a tooltip. The problem is with the jquery. In develop tool show a warning with a function getClientRects, this error is reported to jquery : https://github.com/jquery/jquery/issues/2804. To use a higher jquery version, delete the text in bold in the featureRender file.

if ("tooltipText" in this) { $(featureGroup).qtip({ content: {text: tooltipText, title: tooltipTitle}, position: {viewport: $(window), target: "mouse", adjust: {x: 25, y: 15}}, style: {width: true, classes: this.toolTipfontClass + " ui-tooltip ui-tooltip-shadow"}, show: {delay: 300}, hide: {delay: 300} }); }

agaor commented 6 years ago

Other possibiliy is change window for other tag, I changed it for 'body'.