Skip to content

Commit 97316f5

Browse files
committed
#469 - removed code from unrelated commit
1 parent be3422f commit 97316f5

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/controls/listView/IListView.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ export interface IListViewProps {
4747
* Specify the placeholder for the filter text box. Default 'Search'
4848
*/
4949
filterPlaceHolder?: string;
50-
/**
51-
* Specify if the filter width in % 0 - 100.
52-
*/
53-
filterWidth?: number;
5450
/**
5551
* Specify if the filter text box should be rendered.
5652
*/

src/controls/listView/ListView.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export class ListView extends React.Component<IListViewProps, IListViewState> {
500500
public render(): React.ReactElement<IListViewProps> {
501501
let groupProps: IGroupRenderProps = {};
502502

503-
let { showFilter, filterPlaceHolder, filterWidth } = this.props;
503+
let { showFilter, filterPlaceHolder } = this.props;
504504
let { filterValue, items } = this.state;
505505

506506
// Check if selection mode is single selection,
@@ -517,11 +517,7 @@ export class ListView extends React.Component<IListViewProps, IListViewState> {
517517
return (
518518
<div>
519519
{
520-
showFilter &&
521-
// Add div to control the width of the filter for the list view dynamically allowing users to enter a number 0-100 % to alter the field width
522-
<div style={{width:`${filterWidth}%`}}>
523-
<TextField placeholder={filterPlaceHolder || strings.ListViewFilterLabel} onChanged={this._updateFilterValue} value={filterValue}/>
524-
</div>
520+
showFilter && <TextField placeholder={filterPlaceHolder || strings.ListViewFilterLabel} onChanged={this._updateFilterValue} value={filterValue}/>
525521
}
526522
<DetailsList
527523
key="ListViewControl"

0 commit comments

Comments
 (0)