dasmoth / dalliance

Interactive web-based genome browser.
http://www.biodalliance.org/
BSD 2-Clause "Simplified" License
226 stars 68 forks source link

Set browser to DIV size. #28

Closed KimJBaran closed 11 years ago

KimJBaran commented 12 years ago

The width of the genome browser was determined via window.innerWidth, but it turns out that you can also get the width of the svgHolder DIV via: this.svgHolder.offsetWidth

Sorry, I work on the master branch, so this gets a bit messy. Please ignore all other changes and cherry pick only my latest commit, which addresses the aforementioned change:

git cherry-pick ddb406d80236c6fcce57c53c2f962d9e28835770

Thank you, Joachim

dasmoth commented 11 years ago

Merged (manually, due to some git issues). Thanks!