From 6b5d9ac6d4d4a7e7872910c7b19148864222f772 Mon Sep 17 00:00:00 2001 From: Ephemera <obliviscence+git@gmail.com> Date: Sat, 7 Jun 2014 17:04:32 +0900 Subject: [PATCH] Fix zoom bug related to #106 --- src/main.js | 7 +++++++ src/main.less | 3 +++ 2 files changed, 10 insertions(+) diff --git a/src/main.js b/src/main.js index 002f00c..dcb08f7 100755 --- a/src/main.js +++ b/src/main.js @@ -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) { diff --git a/src/main.less b/src/main.less index 7752354..a0d2765 100755 --- a/src/main.less +++ b/src/main.less @@ -1,6 +1,9 @@ html, .header > .container, .repohead > .container, .site > .container { transition: margin-left .2s ease; } +.notransition { + transition: none !important; +} .octotree_sidebar { position: fixed;