Fixed some more resizing bugs in certain situations not covered by mycology
This commit is contained in:
parent
2f66ddcb91
commit
749caa9e26
4 changed files with 43 additions and 5 deletions
|
@ -13,6 +13,13 @@ func (f *Field) Set(x, y, v int) {
|
|||
l.x = x
|
||||
l.l = 1
|
||||
l.columns = append(l.columns, v)
|
||||
if f.x > x {
|
||||
f.lx = f.lx + f.x - x
|
||||
f.x = x
|
||||
}
|
||||
if f.lx < x-f.x+1 {
|
||||
f.lx = x - f.x + 1
|
||||
}
|
||||
} else if x >= l.x {
|
||||
if x < l.x+l.l {
|
||||
// just set the value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue