Fix zoom bug related to #106

This commit is contained in:
Ephemera 2014-06-07 17:04:32 +09:00
parent 7692aa6368
commit 6b5d9ac6d4
2 changed files with 10 additions and 0 deletions

View File

@ -50,6 +50,13 @@
.on(EVENT.LOC_CHANGE, tryLoadRepo)
.on(EVENT.TOGGLE, sidebarResized)
$(window).resize(function() {
$(GH_CONTAINERS).addClass('notransition')
sidebarResized()
setTimeout(function() {
$(GH_CONTAINERS).removeClass('notransition')
}, 300)
})
function optionsChanged(event, changes) {
var reload = false
Object.keys(changes).forEach(function(storeKey) {

View File

@ -1,6 +1,9 @@
html, .header > .container, .repohead > .container, .site > .container {
transition: margin-left .2s ease;
}
.notransition {
transition: none !important;
}
.octotree_sidebar {
position: fixed;