根据父级调整自动提示框的宽度

时间:2018-06-05 08:11:17

标签: html css angular

我有一个输入字段,在输入字段中输入文本后显示自动建议,如下所示:

enter image description here

如果屏幕尺寸发生变化时,如何根据输入的字段宽度调整自动提示框的宽度,当我最小化屏幕时,框会有一点上升。

以下是代码:

public static string MyPath { get; set; } = @"\MyPlaylists.xlsx";
...

using (var dialog = new FolderBrowserDialog())
{
    dialog.Description = "Please choose directory";
    if (dialog.ShowDialog() == DialogResult.OK)  //check for OK. They might press cancel, so don't do anything if they did.
    {
        string path = dialog.SelectedPath;
        MyPath = path + MyPath;
    }
}

0 个答案:

没有答案