mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
exp/textinput: bug fix: compile failure
This commit is contained in:
parent
27fd10595b
commit
f25f46f50c
@ -113,7 +113,7 @@ func (t *textInput) Start(x, y int) (chan State, func()) {
|
||||
t.textareaElement.Set("value", "")
|
||||
t.textareaElement.Call("focus")
|
||||
|
||||
xf, yf := ui.LogicalPositionToClientPosition(float64(x), float64(y))
|
||||
xf, yf := ui.Get().LogicalPositionToClientPosition(float64(x), float64(y))
|
||||
style := t.textareaElement.Get("style")
|
||||
style.Set("left", fmt.Sprintf("%0.2fpx", xf))
|
||||
style.Set("top", fmt.Sprintf("%0.2fpx", yf))
|
||||
|
Loading…
Reference in New Issue
Block a user