Skip to content

Commit 4e67af1

Browse files
committed
Merge branch 'dev' into v2
2 parents 1c04a98 + 101bfcd commit 4e67af1

File tree

7 files changed

+24
-30
lines changed

7 files changed

+24
-30
lines changed

CHANGELOG.JSON

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"enhancements": [
88
"`FilePicker`: Fixes for OneDrive CORS issues [#407](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/407)",
99
"`ListItemPicker`: added new control property `filter` [#392](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/392)",
10-
"allowing to use context from any type of SPFx extensions: [#419](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/419)"
10+
"allowing to use context from any type of SPFx extensions: [#419](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/419)",
11+
"`Placeholder`: remove unused and vendor specific CSS [#426](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/426)"
1112
],
1213
"fixes": [
1314
"Documentation fix for `FilePicker`: updated `accepts` value in props [#404](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/404)",
@@ -16,7 +17,12 @@
1617
"Documentation fix to include new components from v 1.15.0 [#394](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/394)",
1718
"`DateTimePicker`: dropdown for time not handling AM/PM correctly [#405](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/409)",
1819
"Documentation fix for `index` page: updated link to Chart controls [#417](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/417)",
19-
"Documentation update for SPFx On Premises notice: [#418](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/418)"
20+
"Documentation update for SPFx On Premises notice: [#418](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/418)",
21+
"Documentation update for `ListItemPicker`: `valueColumnInternalName` should be `keyColumnInternalName`",
22+
"`RichText`: Fix \"Align Left\" button [#429](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/429)",
23+
"Documentation update for `FilePicker`: misspelling [#432](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/432)",
24+
"`IFramePanel`: Fix doubled scroll issue when iframe content is higher than frame height [#431](https://github.com/SharePoint/sp-dev-fx-controls-react/pull/431)",
25+
"`PeoplePicker`: `errorMessage` not showing [#420](https://github.com/SharePoint/sp-dev-fx-controls-react/issues/420)"
2026
]
2127
},
2228
"contributions": [
@@ -26,7 +32,12 @@
2632
"[João Mendes](https://github.com/joaojmendes)",
2733
"[PrasadKasireddy](https://github.com/PrasadKasireddy)",
2834
"[Chad Eiserloh](https://github.com/c-eiser13)",
29-
"[Koen Zomers](https://github.com/KoenZomers)"
35+
"[Koen Zomers](https://github.com/KoenZomers)",
36+
"[Dmitry Rogozhny](https://github.com/dmitryrogozhny)",
37+
"[Alexander Kleshcheov](https://github.com/SharePickle)",
38+
"[Hugo Bernier](https://github.com/hugoabernier)",
39+
"[Beniamin](https://github.com/bbronisz)",
40+
"[Giovani Martini](https://github.com/giovanibm)"
3041
]
3142
},
3243
{

docs/documentation/docs/controls/FilePicker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ interface `IFilePickerResult`
8080
Provides options for carousel buttons location.
8181

8282
| Value | Type | Description |
83-
| ---- | ---- |
84-
| fileName | string | File namr of the result with the extension. |
83+
| ---- | ---- | ---- |
84+
| fileName | string | File name of the result with the extension. |
8585
| fileNameWithoutExtension | string | File name of the result without the extension. |
8686
| fileAbsoluteUrl | string | Absolute URL of the file. Null in case of file upload. |
8787
| downloadFileContent | () => Promise<File> | Function allows to download file content. Returns File object. |

docs/documentation/docs/controls/ListItemPicker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ListItemPicker } from '@pnp/spfx-controls-react/lib/listItemPicker';
2323
```TypeScript
2424
<ListItemPicker listId='da8daf15-d84f-4ab1-9800-7568f82fed3f'
2525
columnInternalName='Title'
26-
valueColumnInternalName='Id'
26+
keyColumnInternalName='Id'
2727
filter="Title eq 'SPFx'"
2828
itemLimit={2}
2929
onSelectedItem={this.onSelectedItem}

src/controls/iFramePanel/IFramePanelContent.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export class IFramePanelContent extends React.Component<IIFramePanelContentProps
2727
if (this._iframe) {
2828
const mainDiv = this.findParent(this._iframe, "ms-Panel-main");
2929
const commandsDiv = mainDiv.querySelector(".ms-Panel-commands") as HTMLDivElement;
30-
const headerDiv = mainDiv.querySelector("ms-Panel-header") as HTMLDivElement;
31-
const footerDiv = mainDiv.querySelector("ms-Panel-footer") as HTMLDivElement;
30+
const headerDiv = mainDiv.querySelector(".ms-Panel-header") as HTMLDivElement;
31+
const footerDiv = mainDiv.querySelector(".ms-Panel-footer") as HTMLDivElement;
3232

3333
let height = this.getTrueHeight(mainDiv);
3434
height = height - this.getTrueHeight(commandsDiv);
3535
height = height - this.getTrueHeight(headerDiv);
3636
height = height - this.getTrueHeight(footerDiv);
37-
height = height - 20; // padding on content div
37+
height = height - 25; // padding on content div
3838

3939
this._iframe.height = height.toString() + 'px';
4040
}
@@ -59,9 +59,9 @@ export class IFramePanelContent extends React.Component<IIFramePanelContentProps
5959
*/
6060
private getTrueHeight(elm: HTMLElement): number {
6161
if (elm) {
62-
const style = elm.style || window.getComputedStyle(elm);
62+
const style = window.getComputedStyle && window.getComputedStyle(elm) || elm.style;
6363
let marginTop = parseInt((style.marginTop as string).replace("px", ""));
64-
let marginBottom = parseInt((style.marginTop as string).replace("px", ""));
64+
let marginBottom = parseInt((style.marginBottom as string).replace("px", ""));
6565
if (isNaN(marginTop)) {
6666
marginTop = 0;
6767
}

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
225225
}
226226

227227
{
228-
(this.props.isRequired && this.state.showRequiredError) || (this.state.errorMessage) && (
228+
((this.props.isRequired && this.state.showRequiredError) || (this.state.errorMessage)) && (
229229
<p className={`ms-TextField-errorMessage ${styles.errorMessage} ${this.props.errorMessageClassName ? this.props.errorMessageClassName : ''}`}>
230230
<Icon iconName='Error' className={styles.errorIcon} />
231231
{

src/controls/placeholder/PlaceholderComponent.module.scss

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
@import '~office-ui-fabric-react/dist/sass/References.scss';
22

33
.placeholder {
4-
display: -webkit-box;
5-
display: -ms-flexbox;
64
display: flex;
75

86
.placeholderContainer {
9-
-webkit-box-align: center;
10-
-ms-flex-align: center;
11-
-ms-grid-row-align: center;
127
align-items: center;
138
color: "[theme:neutralSecondary, default: #666666]";
149
background-color: "[theme:neutralLighter, default: #f4f4f4]";
@@ -97,15 +92,3 @@
9792
}
9893
}
9994
}
100-
101-
.placeholderOverlay {
102-
position: relative;
103-
height: 100%;
104-
z-index: 1;
105-
106-
.placeholderSpinnerContainer {
107-
position: relative;
108-
width: 100%;
109-
margin: 164px 0
110-
}
111-
}

src/controls/richText/RichTextPropertyPane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export default class RichTextPropertyPane extends React.Component<IRichTextPrope
369369
id="left-propertyPaneButton"
370370
calloutProps={{ gapSpace: 0 }}>
371371
<IconButton checked={this.state.formats!.align === undefined}
372-
onClick={() => this.applyFormat('align', 'left')}
372+
onClick={() => this.applyFormat('align', undefined)}
373373
className={styles.propertyPaneButton}
374374
aria-describedby="left-propertyPaneButton"
375375
iconProps={{

0 commit comments

Comments
 (0)