Update code for layouts, objects
This commit is contained in:
@@ -11,7 +11,7 @@ type TextView struct {
|
||||
// NewTextView creates a new text view.
|
||||
func NewTextView (text string) *TextView {
|
||||
this := &TextView { TextBox: tomo.NewTextBox() }
|
||||
this.SetRole(tomo.R("objects", "TextView", ""))
|
||||
this.SetRole(tomo.R("objects", "TextView"))
|
||||
this.SetFocusable(true)
|
||||
this.SetSelectable(true)
|
||||
this.SetText(text)
|
||||
@@ -21,6 +21,6 @@ func NewTextView (text string) *TextView {
|
||||
return this
|
||||
}
|
||||
|
||||
func (this *TextView) handleScroll (x, y float64) {
|
||||
func (this *TextView) handleScroll (catch func (), x, y float64) {
|
||||
this.ScrollTo(this.ContentBounds().Min.Add(image.Pt(int(x), int(y))))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user