mirror of
https://github.com/VladimirMarkelov/clui.git
synced 2025-05-03 22:17:14 +08:00
remove debug
This commit is contained in:
parent
0078d1ed0b
commit
4b95d078c9
@ -204,7 +204,6 @@ func (c *Composer) resizeTopView(ev termbox.Event) bool {
|
|||||||
|
|
||||||
w, h := view.Size()
|
w, h := view.Size()
|
||||||
wm, hm := view.Constraints()
|
wm, hm := view.Constraints()
|
||||||
c.Logger().Printf("Resizing window from %v, %v (%v, %v)", w, h, wm, hm)
|
|
||||||
w1, h1 := w, h
|
w1, h1 := w, h
|
||||||
minW, minH := view.Constraints()
|
minW, minH := view.Constraints()
|
||||||
if ev.Key == termbox.KeyArrowUp && minH < h {
|
if ev.Key == termbox.KeyArrowUp && minH < h {
|
||||||
@ -218,7 +217,6 @@ func (c *Composer) resizeTopView(ev termbox.Event) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if w1 != w || h1 != h {
|
if w1 != w || h1 != h {
|
||||||
c.Logger().Printf("Resizing window to %v, %v", w, h)
|
|
||||||
view.SetSize(w, h)
|
view.SetSize(w, h)
|
||||||
// event := Event{Type: EventResize, X: w, Y: h}
|
// event := Event{Type: EventResize, X: w, Y: h}
|
||||||
// c.sendEventToActiveView(event)
|
// c.sendEventToActiveView(event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user