From: Charles Ofoegbu Date: Mon, 22 Dec 2014 16:38:45 +0000 (+0000) Subject: Patch to synchronize title svg and allignment svg scrolling X-Git-Tag: Jalview_2_9~125 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4dad2ddfc361c0f408b8e2320e7186f985f3bb2d;p=jalview.git Patch to synchronize title svg and allignment svg scrolling --- 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(); } }