How can I set the width for a custom dropdown?

Last post 03-26-2009, 7:01 PM by robingwynn. 2 replies.
Sort Posts: Previous Next
  •  03-26-2009, 3:24 PM 50329

    How can I set the width for a custom dropdown?


    We have a custom dropdown that is rendering differently in FireFox than in IE.  It renders properly in IE but in FireFox the dropdown content exceeds the box that should be around the control. 
     
     
    This is the declaration:
     
           public CuteEditor.RichDropDownList ConfigureCuteEdit(CuteEditor.Editor cuteEdit, MergeTagTable mt)
            {
                cuteEdit.AddToolbarGroupStart(cuteEdit.ToolControls);
                CuteEditor.RichDropDownList rdl = new CuteEditor.RichDropDownList(cuteEdit);
                rdl.ID = "rdlMergeTags";
                rdl.Attributes["onchange"] = "CuteEditor_DropDownCommand(this, 'PasteHTML')";
                rdl.CssClass = "CuteEditorDropDown";
                cuteEdit.AddToolControl(rdl);
                cuteEdit.AddToolbarGroupEnd(cuteEdit.ToolControls);
                return rdl;
            }
     
    I tried adding this, but it did not work:
     
                rdl.Attributes["width"] = "110";
     
     What can I use to force the width to a size so that the box around the dropdown content will surround it properly?
     
     
  •  03-26-2009, 4:10 PM 50331 in reply to 50329

    Re: How can I set the width for a custom dropdown?

  •  03-26-2009, 7:01 PM 50337 in reply to 50331

    Re: How can I set the width for a custom dropdown?

    That worked, thanks!
View as RSS news feed in XML