gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

How to remove padding for a single ImageFrame in a single popup Window #300

Open eugenesvk opened 4 months ago

eugenesvk commented 4 months ago

It seems to me that there is some mandatory padding for a same-sized Window containing a same-sized image in a single ImageFrame

If I set position of the ImageFrame to -6,-6 it seems to work, but only for a specific icon size, a different size requires a different offset (I've only found -5 in the source code referring to combobox, not imageframes, and nothing else on padding outside of listviews), but is there a more direct way to achieve this without unstable magic numbers?