Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutCaps committed Jun 8, 2017
1 parent 389ede1 commit fcf7886
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions LimitlessUI/DropDown_WOC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,13 @@ public Control Control
get { return _control; }
set
{
_control = value;
_expandedControlHeight = _control.Height;
_proportion = _expandedControlHeight / 180F;
Invalidate();
if (value != null)
{
_control = value;
_expandedControlHeight = value.Height;
_proportion = _expandedControlHeight / 180F;
Invalidate();
}
}
}
#endregion
Expand Down

0 comments on commit fcf7886

Please sign in to comment.