Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b87f32eac9 | ||
|
|
793526238a | ||
|
|
884148f006 | ||
|
|
3e382da688 | ||
|
|
18b8898644 |
@@ -63,7 +63,7 @@ func NewDialog (kind DialogKind, parent tomo.Window, title, message string, opti
|
||||
}
|
||||
}
|
||||
dialog.controlRow = NewInnerContainer(layouts.ContractHorizontal, options...)
|
||||
messageText.SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignEnd))
|
||||
dialog.controlRow.SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignEnd))
|
||||
|
||||
dialog.SetRoot(NewOuterContainer (
|
||||
layouts.Column { true, false },
|
||||
|
||||
@@ -229,6 +229,7 @@ func (this *Scrollbar) handleButtonUp (button input.Button) bool {
|
||||
|
||||
func (this *Scrollbar) handleMouseMove () bool {
|
||||
if !this.dragging { return false }
|
||||
this.drag()
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -73,7 +73,11 @@ func NewScrollContainer (sides ScrollSide) *ScrollContainer {
|
||||
this.OnKeyUp(this.handleKeyUp)
|
||||
this.SetRole(tomo.R("objects", "ScrollContainer"))
|
||||
this.SetTag(sides.String(), true)
|
||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
||||
if sides == ScrollHorizontal {
|
||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true)(true, false)))
|
||||
} else {
|
||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
||||
}
|
||||
return this
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -120,6 +120,6 @@ func (this *TextInput) handleKeyUp (key input.Key, numpad bool) bool {
|
||||
}
|
||||
|
||||
func (this *TextInput) handleScroll (x, y float64) bool {
|
||||
this.ScrollTo(this.ContentBounds().Min.Add(image.Pt(int(x), int(y))))
|
||||
this.ScrollTo(this.ContentBounds().Min.Sub(image.Pt(int(x), int(y))))
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user