From 56394d6631f494526546cb5cd03297b400a85e65 Mon Sep 17 00:00:00 2001 From: Monika Date: Mon, 24 Jun 2019 16:07:38 -0400 Subject: clean ups --- src/client/views/search/ToggleBar.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/client/views/search/ToggleBar.tsx') diff --git a/src/client/views/search/ToggleBar.tsx b/src/client/views/search/ToggleBar.tsx index 96536794d..b1d22d38c 100644 --- a/src/client/views/search/ToggleBar.tsx +++ b/src/client/views/search/ToggleBar.tsx @@ -33,30 +33,8 @@ export class ToggleBar extends React.Component{ }); } - @computed get totalWidth() { return this.getTotalWidth(); } - - getTotalWidth() { - let bar = document.getElementById("toggle-bar"); - let tog = document.getElementById("toggle-button"); - let barwidth = 0; - let togwidth = 0; - if (bar && tog) { - console.log("they exist") - barwidth = bar.getBoundingClientRect().width; - // barwidth = bar.clientWidth; - console.log(barwidth) - togwidth = tog.getBoundingClientRect().width; - // togwidth = tog.clientWidth; - console.log(togwidth) - } - let totalWidth = (barwidth - togwidth - 10); - console.log(totalWidth) - return totalWidth; - } - componentDidMount = () => { - // let totalWidth = this.totalWidth; let totalWidth = 265; if (this._originalStatus) { -- cgit v1.2.3-70-g09d2