   (defn tab-bar-onConfigurationChanged
     [this new-config]
     (.superOnConfigurationChanged this new-config)
-    (let [context (get-state this :context)
-          res (.getResources context)
-          tab-width (get-resource :dimen :tab_width)]
-      (set-state! this :tab-width (.getDimension res tab-width))
-      (.updateLayout (get-state this :tabs))))
+    (.updateLayout (get-state this :tabs)))
   (defn tab-bar-onMeasure
     [this hspec vspec]
     (.superOnMeasure this hspec vspec)

    ([this context]
      (let [res (.getResources context)
            tab-first-padding-left (.getDimension res (get-resource :dimen :tab_first_padding_left))
            content-view (net.nightweb.tabs.TabLayout. context this)]
        (.setHorizontalScrollBarEnabled this false)
        (.setOverScrollMode this android.view.View/OVER_SCROLL_NEVER)
        (.setOrientation content-view android.widget.LinearLayout/HORIZONTAL)

  )

(do
  (defn tab-bar-create-state
    [context]
    (let [res (.getResources context)]
      (atom {:context context
             :tab-add-overlap (.getDimension res (get-resource :dimen :tab_addoverlap))
             :tab-map {}})))
  (defn tab-bar-init
    ([context] [[context] (tab-bar-create-state context)])
