Merge pull request #18 from puckzxz/master

Fixed issue when window height was resized to 0
This commit is contained in:
V-X 2019-10-08 21:44:06 -05:00 committed by GitHub
commit acee67d510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -329,7 +329,9 @@ func (w *Window) addFunction(name string) {
func resizeCallback(ov ULOverlay) func(userData unsafe.Pointer, width uint32, height uint32) {
return func(userData unsafe.Pointer, width uint32, height uint32) {
UlOverlayResize(ov, width, height)
if height > 0 && width > 0 {
UlOverlayResize(ov, width, height)
}
}
}