UI7 hotfix
- Fix Image has No Size - Fix DragData PathRect Positioning
This commit is contained in:
@@ -47,6 +47,7 @@ class PD_UI7_API Image : public Container {
|
||||
}
|
||||
this->cuv = uv;
|
||||
this->newsize = size;
|
||||
SetSize(size);
|
||||
}
|
||||
~Image() = default;
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user