diff options
| author | Monika <monika_hedman@brown.edu> | 2019-06-24 16:07:38 -0400 |
|---|---|---|
| committer | Monika <monika_hedman@brown.edu> | 2019-06-24 16:07:38 -0400 |
| commit | 56394d6631f494526546cb5cd03297b400a85e65 (patch) | |
| tree | 406506e35e9c8bb4c4a5b838ad82e5ed154894e9 /src/client/views/search/ToggleBar.tsx | |
| parent | cfb2e001ab6df21558fb5d7f9c18e47c7b6c21bb (diff) | |
clean ups
Diffstat (limited to 'src/client/views/search/ToggleBar.tsx')
| -rw-r--r-- | src/client/views/search/ToggleBar.tsx | 22 |
1 files changed, 0 insertions, 22 deletions
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<ToggleBarProps>{ }); } - @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) { |
