From 4dad2ddfc361c0f408b8e2320e7186f985f3bb2d Mon Sep 17 00:00:00 2001 From: Charles Ofoegbu Date: Mon, 22 Dec 2014 16:38:45 +0000 Subject: [PATCH] Patch to synchronize title svg and allignment svg scrolling --- src/jalview/io/HtmlSvgOutput.java | 41 +++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/src/jalview/io/HtmlSvgOutput.java b/src/jalview/io/HtmlSvgOutput.java index 0ffbea1..3c9c608 100644 --- a/src/jalview/io/HtmlSvgOutput.java +++ b/src/jalview/io/HtmlSvgOutput.java @@ -260,15 +260,40 @@ public class HtmlSvgOutput private String getHtml(String titleSvg, String alignmentSvg) { StringBuilder htmlSvg = new StringBuilder(); - htmlSvg.append("" - + "
" - + "
"); - htmlSvg.append(titleSvg); - htmlSvg.append("
").append(alignmentSvg); + htmlSvg.append("" + + ""); + htmlSvg.append("
"); + htmlSvg.append( +"
"); + htmlSvg.append( +"
") + .append(titleSvg) + .append("
") + .append("
\n\n\n\n"); + htmlSvg.append( +"
"); + htmlSvg.append( + "
") + .append(alignmentSvg) +.append("
") + .append("
"); htmlSvg.append("
"); + + htmlSvg.append("\n" + + "\n" + + ""); + return htmlSvg.toString(); } } -- 1.7.10.2