KAMI icon indicating copy to clipboard operation
KAMI copied to clipboard

Implement less volatile custom window positions

Open LordMZTE opened this issue 3 years ago • 2 comments

currently, when giving a widget a custom position, i'ts completely messed up once the window gets resized. this could be fixed by making the position a ratio

LordMZTE avatar Nov 28 '20 17:11 LordMZTE

This is a difficult problem, as if you were to use ratios, windows might overlap if you resize the minecraft window.

This is better fixed with docking, which might be available when we update imgui.

zeroeightysix avatar Dec 18 '20 19:12 zeroeightysix

Another solution to this could be to use the existing corner positioning system but additionally with X and Y offsets. This would allow for custom positioning and solve the issue of positions breaking when the window is resized.

LordMZTE avatar Dec 18 '20 19:12 LordMZTE