Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mark Ritter on Oct 28, 2008 17:36
open dhtmlx forum
Combo slowly grows wider

<div id="GeneralOptionsZone" width="100%;"></div>

    GeneralOptionsCombo=new dhtmlXCombo("GeneralOptionsZone","beta1","100%","checkbox");
    GeneralOptionsCombo.enableOptionAutoPositioning(true);
    GeneralOptionsCombo.setOptionHeight(200);
    GeneralOptionsCombo.readonly(true,true);
    GeneralOptionsCombo.attachEvent("onChange",GetChecked);
    GeneralOptionsCombo.addOption([
        [1,getText(lblShowExtraButtons)],
        [2,getText(lblDoNotShowIfCD)],
        [3,getText(lblUSSFSilentMode)],
        [4,getText(lblVerifyInstallHDD)],
        [5,getText(lblAllowCheckForInternet)],
        [6,getText(lblLoadDesktopBeforeIns)],
        [7,getText(lblReOpenAfterInstall)],
        [8,getText(lblDisableCatCheckBox)],
        [9,getText(lblSortWithinCats)],
        [10,getText(lblDisableDepsNotMet)],
        [11,getText(lblShowScrollBar)],
        [12,getText(lblNoColumnBreak)],
        [13,getText(lblInstallByCategory)],
        [14,getText(lblForceInstallOnExit)],
        [15,getText(lblDisableIfDoGray)],
        [16,getText(txtInstallFonts)]
    ]);

With this combo set to a width of "100%" instead of an actual pixel value, it will be made, but then slowly keep getting wider.

I only do this because the text in the combo is localized, so I just max it out so no text is clipped when not in English. I can almost give it an actual width value, but would be nice to automatically max the width out.
Answer posted by Support on Oct 29, 2008 06:42
Please, check if there are no paddings and margins settings for the combo div. As in this case, combo size can not correctly calculated.

Or just use fixed height.