aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search/ToggleBar.tsx
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-24 11:45:20 -0400
committerMonika <monika_hedman@brown.edu>2019-06-24 11:45:20 -0400
commitc886665b3f244389a09e05ab4805c1225de54d7e (patch)
treed8776fad303919d95d6ae3fe5e901bfb81b53993 /src/client/views/search/ToggleBar.tsx
parenta70ac0d98f879d2f9b8824e51dcab62b840f0b8a (diff)
accordion almost workin
Diffstat (limited to 'src/client/views/search/ToggleBar.tsx')
-rw-r--r--src/client/views/search/ToggleBar.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/views/search/ToggleBar.tsx b/src/client/views/search/ToggleBar.tsx
index 6f141d42a..90fab99ee 100644
--- a/src/client/views/search/ToggleBar.tsx
+++ b/src/client/views/search/ToggleBar.tsx
@@ -39,16 +39,23 @@ export class ToggleBar extends React.Component<ToggleBarProps>{
let barwidth = 0;
let togwidth = 0;
if (bar && tog) {
- barwidth = bar.clientWidth;
- togwidth = tog.clientWidth;
+ 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 = this.totalWidth;
+ let totalWidth = 265;
if (this._originalStatus) {
this.forwardTimeline.add({