replace is_overlap?
with overlap?
This commit is contained in:
parent
fab7fdcf2f
commit
bd406ca350
1 changed files with 2 additions and 2 deletions
|
@ -152,14 +152,14 @@ module Network
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_free_parent_space(range, space_base, space_step, space_default)
|
def find_free_parent_space(range, space_base, space_step, space_default)
|
||||||
if is_overlap?(range, space_default)
|
if overlap?(range, space_default)
|
||||||
find_free_space(range, space_step, space_base, space_default)
|
find_free_space(range, space_step, space_base, space_default)
|
||||||
else
|
else
|
||||||
space_default
|
space_default
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_overlap?(range, overlap_space)
|
def overlap?(range, overlap_space)
|
||||||
range.each do |i|
|
range.each do |i|
|
||||||
if i != range.first &&
|
if i != range.first &&
|
||||||
i != range.last &&
|
i != range.last &&
|
||||||
|
|
Loading…
Reference in a new issue