   (reify
     om/IDidMount
     (did-mount [_]
-      (mount-header-logo-scroll owner)
-      (calculate-scrollbar-width owner))
+      (mount-header-logo-scroll owner))
     om/IInitState
     (init-state [_]
       {:header-logo-visible false

                    js/window
                    "scroll"
                    scroll-callback))))

(defn calculate-scrollbar-width
  "Inserts and removes an out-of-view element to let us calculate the width of the scrollbar"
  [owner]
  (let [el (node [:div {:style "width: 100px; height: 100px; overflow: scroll; position: fixed; top: -200px"}])]
    (dommy/append! (om/get-node owner) el)
    (om/set-state! owner [:scrollbar-width] (utils/inspect (- (.-offsetWidth el) (.-clientWidth el))))
    (dommy/remove! el)))

(def circle-logo
  [:svg {:xmlns "http://www.w3.org/2000/svg" :x "0px" :y "0px" :viewBox "0 0 393 100" :enableBackground "new 0 0 393 100"}

       :header-bkg-invisible false
       :first-fig-animate false
       :second-fig-animate false
       :scroll-ch (chan (sliding-buffer 1))
       :hovered-customer nil})
    om/IRenderState
