vlang / ui

A cross-platform UI library written in V
MIT License
2.33k stars 154 forks source link

Window resizing will not resize content of CanvasLayout #556

Open lazalong opened 1 year ago

lazalong commented 1 year ago

Hi,

V version: 0.4.2 ab4clf4 UI version: latest OS: Win 10

What did you do?

When resizing a CanvasLayout using a SplitPanel will resize (as I expect) the content; however, this behaviour will not happen when you resize the Window.

What did you expect to see?

I am expecting a consistent behaviour between resizing using a splitpanel or resizing the whole window.

IMO the window resizing should call the method splitpanel_btn_mouse_move(b &ui.Button, e &ui.MouseMoveEvent) in splitpanel.v.

It should be possible to add a parameter to make the content resizing optional.

What did you see instead?

Only the SplitPanel resizing will resize the content as I hoped.

Thanks

GIF 16-11-2023 00-12-01