diff options
author | bob <bcz@cs.brown.edu> | 2019-09-19 11:49:38 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-19 11:49:38 -0400 |
commit | 4c0bdf9c38a134a7e669d8c113e10e9cfac6e1a6 (patch) | |
tree | 3f0859cf7aa2417c7b9de5bdcd028f2ff6bc294f /src/client/views/MainOverlayTextBox.tsx | |
parent | 2cdca63ac039a7c66a9c93acb35fe51467269e64 (diff) |
fixed text location when editing a resized document. made animatebetweenPoint from documentview's collapsetoTargetPoint
Diffstat (limited to 'src/client/views/MainOverlayTextBox.tsx')
-rw-r--r-- | src/client/views/MainOverlayTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/MainOverlayTextBox.tsx b/src/client/views/MainOverlayTextBox.tsx index f32fb584a..115ab6cd5 100644 --- a/src/client/views/MainOverlayTextBox.tsx +++ b/src/client/views/MainOverlayTextBox.tsx @@ -78,7 +78,7 @@ export class MainOverlayTextBox extends React.Component<MainOverlayTextBoxProps> this._textTargetDiv = div; this._textHideOnLeave = FormattedTextBox.InputBoxOverlay && FormattedTextBox.InputBoxOverlay.props.hideOnLeave; if (div) { - this._textBottom = div.parentElement && getComputedStyle(div.parentElement).bottom ? true : false; + this._textBottom = div.parentElement && getComputedStyle(div.parentElement).top !== "0px" ? true : false; this._textColor = (getComputedStyle(div) as any).color; div.style.color = "transparent"; } |