Boxes Resize - How Do I Lock Size?

DayShallCome - November 1, 2006 - 05:47
Project:Active Select
Version:HEAD
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When I use active select, the SELECT boxes change size when a new active Query happens. How do I keep this from happening? How do I make the select boxes a certain width?

#1

krunar - February 21, 2008 - 12:50

well..i guess you have figure out the answer after a year and a half...but since i just find it my self i will write it down is case someone else needs that.
Conf: Drupal 5.7 + activeselect-5.x-1.0

Solution 1 (sets the size of the source)
In line 71 set the maxwidth your self
After
this.setSelectWidth(maxWidth);
Add
this.setSelectWidth(8);

Solution 2.
this one is not mine...found in a site
Also BE CARE FULL with this one my activeselct stop working on IE7 so not much of a use
comment line 71
this.setSelectWidth(maxWidth);
and line ~190
this.setTargetWidth(targetIndex, maxWidth);

hope it will be of some use to anyone

#2

vanvemden - February 25, 2008 - 00:37

Set the width in your stylesheet by using:

width: 150px !important;

Works for me and no need to hack the code.

 
 

Drupal is a registered trademark of Dries Buytaert.