]> git.0d.be Git - barnard.git/blobdiff - uiterm/textbox.go
uiterm: call uiDraw methods when View properties change
[barnard.git] / uiterm / textbox.go
index 60c7ab26108773f1307adaf6ea588afc115eb862..d2233ab1278351ad1746167b15e1b8cd2833a79d 100644 (file)
@@ -25,6 +25,7 @@ func (t *Textbox) uiInitialize(ui *Ui) {
 
 func (t *Textbox) uiSetActive(active bool) {
        t.active = active
+       t.uiDraw()
 }
 
 func (t *Textbox) uiSetBounds(x0, y0, x1, y1 int) {
@@ -32,6 +33,7 @@ func (t *Textbox) uiSetBounds(x0, y0, x1, y1 int) {
        t.y0 = y0
        t.x1 = x1
        t.y1 = y1
+       t.uiDraw()
 }
 
 func (t *Textbox) uiDraw() {