vczh-libraries / GacUI

GPU Accelerated C++ User Interface, with WYSIWYG developing tools, XML supports, built-in data binding and MVVM features.
Other
2.35k stars 297 forks source link

Window drag to smallest size glich in dpi:125% #79

Closed vczh closed 2 years ago

vczh commented 2 years ago

Resizing this window in dpi:125% monitor, the window size will suddenly jump a little bit bigger when it is dragged to its smallest size.

<Resource>
  <Instance name="MainWindowResource">
    <Instance ref.CodeBehind="false" ref.Class="demo::TestWindow">
      <Window ref.Name="self" Text="GacUI XML资源展示" ClientSize="x:800 y:600">
        <att.ContainerComposition-set PreferredMinSize="x:640 y:480" />
        <Bounds AlignmentToParent="left:0 top:0 right:0 bottom:0">
          <Bounds AlignmentToParent="left:0 top:0 right:-1 bottom:-1" PreferredMinSize="x:640 y:480">
            <SolidBorder Color="#FFFF00"/>
          </Bounds>
        </Bounds>
      </Window>
    </Instance>
  </Instance>
</Resource>