data-oriented-patterns #9
@ -360,8 +360,8 @@ func (element *TextBox) draw () {
|
|||||||
pattern.Draw(element.core, bounds)
|
pattern.Draw(element.core, bounds)
|
||||||
|
|
||||||
offset := bounds.Min.Add (image.Point {
|
offset := bounds.Min.Add (image.Point {
|
||||||
X: -element.scroll,
|
X: padding[artist.SideLeft] - element.scroll,
|
||||||
Y: 0,
|
Y: padding[artist.SideTop],
|
||||||
})
|
})
|
||||||
|
|
||||||
if element.Focused() && !element.dot.Empty() {
|
if element.Focused() && !element.dot.Empty() {
|
||||||
|
Reference in New Issue
Block a user