imgui icon indicating copy to clipboard operation
imgui copied to clipboard

Demo: fixed resizing while maintaining aspect ratio constraint

Open imdongye opened this issue 1 year ago • 1 comments

before version problem:

  1. can't resize vertially with grap corner.
  2. can't resize with grap top and bottom edges.
  3. there is no status value to check which part of the window (corner, edge, etc.) is being used to resize the current window.

Animation

my sollution is using mouse cursor status and aspect ratio of next window size

after version:

Animation2

usage my framebuffer viewport code

imdongye avatar Sep 29 '24 18:09 imdongye

Linking to #6210

ocornut avatar Oct 03 '24 15:10 ocornut