Dropdown alters allotted column width

QuestionsDropdown alters allotted column width
Paolo D. asked 5 years ago

I have a problem with dropdown altering the format of my edit form.

My form of 350 width has 3 columns of 100 width.

My first column is a dropdown and some values cause the dropdown to expand beyond the allotted 100 width. Instead of covering the other columns (which I don't mind since I am selecting a value of the dropdown) the other columns are shifted right so that, for example, if the maximum value of the dropdown is 200 width I find myself with 3 columns measuring 200, 50 and 50.

How can I fix it?

Thanks

1 Answers
Paolo L. answered 5 years ago

Fixed by adding to the dropdown field

$col["editoptions"] = array("style"=>"width:100px");

Abu Ghufran Staff replied 2 years ago

For safe side, use this $col[“editoptions”][“style”] = “width:100px”;
This will not reset editoptions if you have already set earlier in code.

Your Answer

0 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?