|
@@ -38,10 +38,10 @@ class ScaleSearch extends Component {
|
|
|
}
|
|
|
getSearchList() {
|
|
|
const { searchResult } = this.props;
|
|
|
- const that = this;console.log(getWindowInnerHeight()-270);
|
|
|
+ const that = this;
|
|
|
if(searchResult&&searchResult.length>0){
|
|
|
setTimeout(function(){
|
|
|
- that.$ul.current.style.height = getWindowInnerHeight()-270+'px';
|
|
|
+ that.$ul.current.style.height = getWindowInnerHeight()-248+'px';
|
|
|
},100);
|
|
|
}
|
|
|
return searchResult && searchResult.map((item) => {
|
|
@@ -97,15 +97,15 @@ class ScaleSearch extends Component {
|
|
|
clearResult&&clearResult();
|
|
|
}
|
|
|
componentDidMount(){
|
|
|
- const height = getWindowInnerHeight()-170;
|
|
|
+ const height = getWindowInnerHeight()-148;
|
|
|
this.$cont.current.style.height = height+"px";
|
|
|
windowEventHandler('resize', ()=>{
|
|
|
if(this.$cont.current){
|
|
|
- const height = getWindowInnerHeight()-170;
|
|
|
+ const height = getWindowInnerHeight()-148;
|
|
|
this.$cont.current.style.height = height+"px";
|
|
|
}
|
|
|
if(this.$ul.current){
|
|
|
- const height = getWindowInnerHeight()-270;
|
|
|
+ const height = getWindowInnerHeight()-248;
|
|
|
this.$ul.current.style.height = height+"px";
|
|
|
}
|
|
|
});
|