ui icon indicating copy to clipboard operation
ui copied to clipboard

Minimizing the window keeps firing on_resize operation

Open rpsrosario opened this issue 4 years ago • 0 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.

rpsrosario avatar Feb 13 '21 21:02 rpsrosario