Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1175
Dynamic dropdown width doesnt seem to work with the list
posted

Hello there,

I attached two screenshots. My goal: I want the dropdown just with 90% width, since i Want to show an validator at the right side.

This is my control:

<stgwc:DropDown runat="server" ID="ddlIndRoleAttribType" CssClass="displayInlineBlock" Width="90%" DisplayMode="DropDownList" />

DisplayInlineBlock is just this:

       
        .displayInlineBlock
        {
            display:inline-block;
        }

This is what I get:

I understand the list is wider than the control, since it fits to the text, but the right stripe shouldnt be there. Is this a bug? I guess the control resizes to 90%, but doesnt refit the original size.

Setting the ContainerWidth to 100% gets me that:

As you can see, not really a solution.

Is there a work arround resp. is that a bug from the control? Or do I miss a property to set?

Thanks and a nice weekend


Matthias