fix CPU issues caused by resizing popup panels

This commit is contained in:
Jesse Duffield 2018-08-12 12:00:30 +10:00
parent 400301e8fa
commit ed1518fd66
21 changed files with 1072 additions and 323 deletions

View file

@ -122,7 +122,7 @@ func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View {
}
// Dimensions returns the dimensions of the View
func Dimensions(v *View) (int, int, int, int) {
func (v *View) Dimensions() (int, int, int, int) {
return v.x0, v.y0, v.x1, v.y1
}