Hey, im trying to make the horizontal scrollbar a fixed footer at the button on the page.
can i do it from css?
i tried to do something like that but it seems it doesn't affect
|
<GridComponent dataSource={orderDetails} height='350'>
</GridComponent>
|
Is there a way that i can make it fixed on the bottom of the screen? if i change the size of my browser window i need to scroll down to see the scrollbar. as you can see in the first screenshot I don't need to scroll down to see the scrollbar , but if I change my browsers size i do need to scroll down(second screen shot)
|
[index.html]
<style>
html,
body,
#sample {
height: 100%;
}
.container {
height: 100%;
}
.header {
height: 30%;
}
.content {
height: 60%; // customize the height of Grid’s parent element. You can also set 90%, 80% based on your requirement.
}
</style>
|
|
export class AggregateDefault extends SampleBase {
render() {
return (
<div className="container">
<div className="header">
<div>
<button>button</button>
<button>button</button>
</div>
<br />
<h>Text</h>
<div>
<input />
</div>
</div>
<div className="content">
<GridComponent
dataSource={hierarchyOrderdata}
editSettings={this.editOptions}
toolbar={this.toolbarOptions}
height={'100%'}
width={'100%'}
actionFailure={this.actionFailure.bind(this)}
aggregates={this.aggregates}
>
---
</GridComponent>
</div>
</div>
);
}
}
|