Skip to content

Commit fbe2ecc

Browse files
committed
use getCanvas.getWidth() and enable animtedZooms
1 parent dc78f8b commit fbe2ecc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/at/gmi/nordborglab/widgets/gwasgeneviewer/client/GWASGeneViewer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public void onUnderlay(UnderlayEvent event) {
286286

287287
if (bonferroniThreshold != -1) {
288288
double posY = (int)event.dygraph.toDomYCoord(bonferroniThreshold, 0)-0.5;
289-
int width = event.canvas.getWidth();
289+
int width = event.canvas.getCanvas().getWidth();
290290
event.canvas.save();
291291
event.canvas.beginPath();
292292
event.canvas.setStrokeStyle(gene_marker_color);
@@ -334,6 +334,7 @@ protected Options setOptions(Dygraphs.Options options){
334334
options.setMinimumDistanceForHighlight(10);
335335
options.setIncludeYPositionForHightlight(true);
336336
options.setDateWindow(viewStart, viewEnd);
337+
options.setAnimatedZooms(true);
337338
return options;
338339
}
339340

0 commit comments

Comments
 (0)