Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A dropdown ComboBox list is displayed incorrectly when a textbox has the "position: absolute" style #400

Closed
2 tasks
MichaelGoyette1 opened this issue Dec 1, 2017 · 4 comments
Milestone

Comments

@MichaelGoyette1
Copy link

17.1 The AJAX Control Toolkit <VERSION>

The installation method

  • Installer

Minimal steps to reproduce the bug

css:

position:: absolute;
left: 100px;
top: 100px;

Actual result

position of Combobox correct - position of dropdown list off by 100px left - 100px top

Expected result

dropdownlist with combobox

Browser(s) used

edge, i.e.

A site deployment method

  • VS development web-server,

Have seen this problem mentioned many times for past 7-8 years - looking for solution

Thanks - Michael

@MichaelGoyette1
Copy link
Author

Hi Mikhail,

This reproduces the problem exactly.
I used the code from your first example.
Notice where the dropdown list shows up when you run it.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ComboxBoxTester.aspx.vb" Inherits="PapaGodSystems.ComboxBoxTester" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<title>Combobox Tester</title>
   <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <ajaxToolkit:ComboBox ID="ComboBox1" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend" CssClass="combo">
        <asp:ListItem Text="Mild" Value="0" /> 

            <asp:ListItem Text="Medium" Value="1" />
            <asp:ListItem Text="Spicy" Value="2" />
</ajaxToolkit:ComboBox>

    <style>
        .combo{
            position: absolute;
            left: 100px;
            top: 100px;
        }
    </style>

</form>

Thanks,

Michael

@MikhailTymchukDX MikhailTymchukDX changed the title Combobox dropdownlist positioning error A dropdown ComboBox list is displayed incorrectly when a textbox has the "position: absolute" style Dec 11, 2017
@MikhailTymchukDX MikhailTymchukDX added this to the 17.1.2 milestone Dec 11, 2017
@MichaelGoyette1
Copy link
Author

Hi Mikhail - Thank You - So this is a real issue - looks like it has been for a long time - I see stuff dating back to 2011 with same problem. Do I understand this to mean you are hoping to correct this in the 17.1.2 release of the Ajax Control Toolkit? - Michael

@MikhailTymchukDX
Copy link
Contributor

@MichaelGoyette1 Yes, labeling an issue with the 17.1.2 milestone means that this change will be included in the v17.1.2 release.

@MichaelGoyette1
Copy link
Author

MichaelGoyette1 commented Dec 11, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants