wilzbach / msa

Modular BioJS compoment for a multiple sequence alignment
http://msa.biojs.net
Boost Software License 1.0
168 stars 79 forks source link

Scrolling with hidden columns #193

Closed wilzbach closed 2 years ago

wilzbach commented 8 years ago

reported by @kakatoh

First I tried: columns: { hidden: [0,1,2,3,4,5,,,,,90] } as in http://mafft.cbrc.jp/alignment/server/spool/question11.html With this setting, I partly got an expected result (columns 0-90 are indeed hidden), but the width of alignment screen became strangely narrow and the residue indices do not move with scrolling.

wilzbach commented 8 years ago

well that one is more complicated, if someone wants to have a try at this: the MSAViewer already calculates the number of hidden columns to its right, s.t. it can correctly render the sequences, but there seems something wrong. A good place to start would be this line:

https://github.com/wilzbach/msa/blob/master/src/views/canvas/CanvasSeqBlock.js#L349

(with Chrome you can directly browse all bundled files and set breakpoints)