vlang / ui

A cross-platform UI library written in V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimizing the window keeps firing on_resize operation

rpsrosario opened this issue · comments

V version: V 0.2.2 e809264
UI version: 0.0.4
OS: windows, Microsoft Windows 10 Home v19042 64-bit

What did you do?
Ran the following V program:

import ui

fn main() {
	ui.run(ui.window({
		width: 640
		height: 480
		title: 'UI Resize Test'
		resizable: true
		on_resize: fn (w int, h int, window &ui.Window) {
			println('Resized to $w x $h')
		}
	}, []))
}

And minimized the resulting window.

What did you expect to see?
At most one output line resulting from the minimizing operation.

What did you see instead?
The program was constantly invoking the on_resize operation, yielding several lines in the output.