vlang / ui

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

Window resizing will not resize content of CanvasLayout #556

Open lazalong opened 7 months ago

lazalong commented 7 months 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