mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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