summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Gläßer <tobimensch@users.noreply.github.com>2018-10-29 10:20:44 -0400
committerThomas Buckley-Houston <tom@tombh.co.uk>2019-06-24 09:09:58 +0300
commitbd5c30640db90c7f926d5703dee1844d5869ea9b (patch)
treeeff25e4f86a3ecf45b0e5bfcc5d9ecf10716bc58
parent0b7d1dc7ef4c2ffbec6f1ea5fe6ad55084905bb1 (diff)
Instead of adding 1 to Y coord, add 1 to height. This fixes an issues
with activating input boxes using link hinting.
-rw-r--r--interfacer/src/browsh/frame_builder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/interfacer/src/browsh/frame_builder.go b/interfacer/src/browsh/frame_builder.go
index afb53c3..37f90ee 100644
--- a/interfacer/src/browsh/frame_builder.go
+++ b/interfacer/src/browsh/frame_builder.go
@@ -160,9 +160,9 @@ func (f *frame) updateInputBoxes(incoming incomingFrameText) {
inputBox := f.inputBoxes[incomingInputBox.ID]
inputBox.X = incomingInputBox.X
// TODO: Why do we have to add the 1 to the y coord??
- inputBox.Y = (incomingInputBox.Y + 1) / 2
+ inputBox.Y = (incomingInputBox.Y + 0) / 2
inputBox.Width = incomingInputBox.Width
- inputBox.Height = incomingInputBox.Height / 2
+ inputBox.Height = (incomingInputBox.Height / 2) + 1
inputBox.FgColour = incomingInputBox.FgColour
inputBox.TagName = incomingInputBox.TagName
inputBox.Type = incomingInputBox.Type