Draggable left edge resize, part 1
This commit is contained in:
@@ -85,7 +85,11 @@ type trayItem struct {
|
||||
}
|
||||
|
||||
func trayItems(clientW, clientH int32) []trayItem {
|
||||
x := clientW / 2
|
||||
return trayItemsAt(axisX(clientW), clientH)
|
||||
}
|
||||
|
||||
// trayItemsAt lays the right-hand items out rightward from x.
|
||||
func trayItemsAt(x, clientH int32) []trayItem {
|
||||
var out []trayItem
|
||||
for _, kind := range trayOrder {
|
||||
var w int32
|
||||
|
||||
Reference in New Issue
Block a user