You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Rename Control margin to offset
This commit is contained in:
@@ -294,10 +294,10 @@ FindInFilesDialog::FindInFilesDialog() {
|
||||
set_title(TTR("Find in Files"));
|
||||
|
||||
VBoxContainer *vbc = memnew(VBoxContainer);
|
||||
vbc->set_anchor_and_margin(MARGIN_LEFT, Control::ANCHOR_BEGIN, 8 * EDSCALE);
|
||||
vbc->set_anchor_and_margin(MARGIN_TOP, Control::ANCHOR_BEGIN, 8 * EDSCALE);
|
||||
vbc->set_anchor_and_margin(MARGIN_RIGHT, Control::ANCHOR_END, -8 * EDSCALE);
|
||||
vbc->set_anchor_and_margin(MARGIN_BOTTOM, Control::ANCHOR_END, -8 * EDSCALE);
|
||||
vbc->set_anchor_and_offset(SIDE_LEFT, Control::ANCHOR_BEGIN, 8 * EDSCALE);
|
||||
vbc->set_anchor_and_offset(SIDE_TOP, Control::ANCHOR_BEGIN, 8 * EDSCALE);
|
||||
vbc->set_anchor_and_offset(SIDE_RIGHT, Control::ANCHOR_END, -8 * EDSCALE);
|
||||
vbc->set_anchor_and_offset(SIDE_BOTTOM, Control::ANCHOR_END, -8 * EDSCALE);
|
||||
add_child(vbc);
|
||||
|
||||
GridContainer *gc = memnew(GridContainer);
|
||||
@@ -551,10 +551,10 @@ FindInFilesPanel::FindInFilesPanel() {
|
||||
add_child(_finder);
|
||||
|
||||
VBoxContainer *vbc = memnew(VBoxContainer);
|
||||
vbc->set_anchor_and_margin(MARGIN_LEFT, ANCHOR_BEGIN, 0);
|
||||
vbc->set_anchor_and_margin(MARGIN_TOP, ANCHOR_BEGIN, 0);
|
||||
vbc->set_anchor_and_margin(MARGIN_RIGHT, ANCHOR_END, 0);
|
||||
vbc->set_anchor_and_margin(MARGIN_BOTTOM, ANCHOR_END, 0);
|
||||
vbc->set_anchor_and_offset(SIDE_LEFT, ANCHOR_BEGIN, 0);
|
||||
vbc->set_anchor_and_offset(SIDE_TOP, ANCHOR_BEGIN, 0);
|
||||
vbc->set_anchor_and_offset(SIDE_RIGHT, ANCHOR_END, 0);
|
||||
vbc->set_anchor_and_offset(SIDE_BOTTOM, ANCHOR_END, 0);
|
||||
add_child(vbc);
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user