diff options
author | bob <bcz@cs.brown.edu> | 2019-10-03 17:07:33 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-03 17:07:33 -0400 |
commit | 48ac0b54cfe29b97a7add72b2369bfc2896f98f7 (patch) | |
tree | ef5e2d3489a8f920b1cada77b13aa9d0a4894c8b /src/client/views/MainOverlayTextBox.tsx | |
parent | 6c56481932872e9a35030cf3e44f1a6f75f88c51 (diff) |
partially fixed editing text boxes in stacking views. tweaked link following from text boxes.
Diffstat (limited to 'src/client/views/MainOverlayTextBox.tsx')
-rw-r--r-- | src/client/views/MainOverlayTextBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/MainOverlayTextBox.tsx b/src/client/views/MainOverlayTextBox.tsx index 335cc609f..73eef9478 100644 --- a/src/client/views/MainOverlayTextBox.tsx +++ b/src/client/views/MainOverlayTextBox.tsx @@ -78,7 +78,8 @@ 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).top !== "0px" ? true : false; + let parTop = div.parentElement && getComputedStyle(div.parentElement).top; + this._textBottom = parTop && parTop !== "0px" && parTop != "auto" ? true : false; this._textColor = (getComputedStyle(div) as any).color; div.style.color = "transparent"; } |