mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
- Made Dim.DimAutoStyle flags.
Made View.ContentSize nullable, so _contentSize can be used to express 'desired contentsize
This commit is contained in:
@@ -612,13 +612,14 @@ public class ComboBox : View
|
||||
Height = _minimumHeight;
|
||||
}
|
||||
|
||||
// BUGBUG: This uses Viewport. Should use ContentSize
|
||||
if ((!_autoHide && Viewport.Width > 0 && _search.Frame.Width != Viewport.Width)
|
||||
|| (_autoHide && Viewport.Width > 0 && _search.Frame.Width != Viewport.Width - 1))
|
||||
{
|
||||
_search.Width = _listview.Width = _autoHide ? Viewport.Width - 1 : Viewport.Width;
|
||||
_listview.Height = CalculatetHeight ();
|
||||
_search.SetRelativeLayout (ContentSize);
|
||||
_listview.SetRelativeLayout (ContentSize);
|
||||
_search.SetRelativeLayout (ContentSize.GetValueOrDefault());
|
||||
_listview.SetRelativeLayout (ContentSize.GetValueOrDefault ());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user