Support position property in editor component (#2314)

* Support position property in editor component
- This needs to be set directly on the editor component so cannot just use CSSStyles feature
- Given its importance to this scenario, it also warrants a dedicated property.

* Fix window resize when action bar clicked

* Renamed per Abbie's suggestion

* Changed name to clarify the comments
This commit is contained in:
Kevin Cunnane
2018-08-23 17:32:13 -07:00
committed by GitHub
parent 4ab5d84b94
commit 2bfc3a6c85
6 changed files with 51 additions and 18 deletions

View File

@@ -484,7 +484,14 @@ declare module 'sqlops' {
/**
* The languge mode for this text editor. The language mode is SQL by default.
*/
languageMode?: string
languageMode?: string;
/**
* The position CSS property for the editor. Empty by default.
* If the editor is included inside a FlexContainer this must be
* set to 'absolute', with the parent FlexContainer having 'relative' position.
* Without this the editor will fail to correctly size itself
*/
position?: string;
}
export interface ButtonProperties extends ComponentProperties, ComponentWithIcon {