SPSetMultiSelectSizes not working with mixWidth and maxWidth.

Jun 8, 2015 at 8:35 PM
I began using SPSetMultiSelectSizes without the minWidth and maxWidth so it would size it to the largest option, but now I want to limit the size of the select boxes. In the code below I've tried to set a min/max limit of 150px - 215px, but when I check the select boxes with the DOM Explore they're still 259 px (size of the largest option). Am I using SPSetMultiSelectSizes wrong, how do I resolve this?

Version Info:
jQuery version: 2.1.3
SPServices version: 2014.02
SharePoint Online

Current Code:
        $().SPServices.SPSetMultiSelectSizes({
            multiSelectColumn: "Room List",
            minWidth: 150,
            maxWidth: 215,
        });
        // code below works
        $().SPServices.SPCascadeDropdowns({
            relationshipList: "{GUID}",
            relationshipListParentColumn: "ReservationLocation",
            relationshipListChildColumn: "Title",
            relationshipListSortColumn: "ID",
            parentColumn: "Reservation Location",
            childColumn: "Room List",
        });
Thanks

zingwing
Coordinator
Jun 8, 2015 at 8:45 PM
Edited Jun 8, 2015 at 8:45 PM
You've got some trailing commas which may be throwing an error above. Make sure the last option doesn't have an trailing comma. That might be the issue.

M.
Jun 8, 2015 at 9:11 PM
I have removed trailing commas and it's still sizing as if minWidth and maxWidth aren't their.

-zingwing