FIX: [STUDIO-3084] size of full_width field

Change-Id: I804b364c2faf0990837c9d4d38110eed9d4f0b49
This commit is contained in:
chunmao.guo 2023-06-05 09:57:57 +08:00 committed by Lane.Wei
parent 0dbda47be1
commit 05c2148b82
1 changed files with 1 additions and 1 deletions

View File

@ -826,7 +826,7 @@ void OG_CustomCtrl::CtrlLine::render(wxDC& dc, wxCoord h_pos, wxCoord v_pos)
draw_buttons(field);
// update width for full_width fields
if (option_set.front().opt.full_width && field && field->getWindow())
field->getWindow()->SetSize(ctrl->GetSize().x - h_pos2 + h_pos3 - h_pos, -1);
field->getWindow()->SetSize(ctrl->GetSize().x - h_pos2 + h_pos3 - h_pos - ctrl->m_em_unit * 3, -1);
return;
}