FIX: [STUDIO-1997] SpinInput messureSize
Change-Id: I5923248b4980cb7638ce683d4e32e9c271b102cd
This commit is contained in:
parent
00221d8652
commit
21a6281998
|
@ -106,7 +106,7 @@ void SpinInput::SetTextColor(StateColor const &color)
|
||||||
|
|
||||||
void SpinInput::SetSize(wxSize const &size)
|
void SpinInput::SetSize(wxSize const &size)
|
||||||
{
|
{
|
||||||
wxWindow::SetSize(size);
|
StaticBox::SetSize(size);
|
||||||
Rescale();
|
Rescale();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,11 +204,11 @@ void SpinInput::messureSize()
|
||||||
int h = textSize.y + 8;
|
int h = textSize.y + 8;
|
||||||
if (size.y < h) {
|
if (size.y < h) {
|
||||||
size.y = h;
|
size.y = h;
|
||||||
SetSize(size);
|
|
||||||
SetMinSize(size);
|
|
||||||
} else {
|
|
||||||
textSize.y = size.y * 14 / 24;
|
|
||||||
}
|
}
|
||||||
|
wxSize minSize = size;
|
||||||
|
minSize.x = GetMinWidth();
|
||||||
|
StaticBox::SetSize(size);
|
||||||
|
SetMinSize(size);
|
||||||
wxSize btnSize = {14, (size.y - 4) / 2};
|
wxSize btnSize = {14, (size.y - 4) / 2};
|
||||||
btnSize.x = btnSize.x * btnSize.y / 10;
|
btnSize.x = btnSize.x * btnSize.y / 10;
|
||||||
wxClientDC dc(this);
|
wxClientDC dc(this);
|
||||||
|
|
Loading…
Reference in New Issue