UI7 hotfix

- Fix Image has No Size
- Fix DragData PathRect Positioning
This commit is contained in:
2026-01-24 09:27:21 +01:00
parent 641fc27e55
commit 4a73e8c8da
2 changed files with 3 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ class PD_UI7_API Image : public Container {
}
this->cuv = uv;
this->newsize = size;
SetSize(size);
}
~Image() = default;

View File

@@ -82,7 +82,8 @@ PD_UI7_API void DragData<T>::Draw() {
}
vec2 td = io->Font->GetTextBounds(p, io->FontScale);
list->PathRect(FinalPos() + fvec2(off_x, 0),
FinalPos() + td + io->FramePadding, io->FrameRounding);
FinalPos() + fvec2(off_x, 0) + td + io->FramePadding,
io->FrameRounding);
list->PathFill(io->Theme->Get(UI7Color_Button));
list->LayerUp();
list->DrawTextEx(FinalPos() + fvec2(off_x, 0), p,