Jul 18, 2011, 11:40 AM
Field Label with long text value grows beyond 'LabelWidth' property of formpanel
Hi All,
I have a problem pretty much described by the topic title, I have a combo box with a long field label value 'asdfhkgasdgfafsdafgasdbfkbasdjkfvbkasdfadsfafsdtg f6345634635656' for example.
My formpanel has a LabelWidth property defined as 200, but this long field name is not restricted to this width. As a result, my combobox is either squashed over and not in line with the rest of the form, or doesn't display at all (depending on the length of the field label).
I've tried setting the combo box label width to 200 explicitely or applying a LabelStyle of say "width: 200px; overflow: hidden;" but these don't seem to have any effect.
Are there any recommended ways to handle long field labels? (the problem we have here is that the user can define their own label, so we can't control the length, as rigidly as we'd like).
Any pointers would be great,
Many thanks,
Doug
I have a problem pretty much described by the topic title, I have a combo box with a long field label value 'asdfhkgasdgfafsdafgasdbfkbasdjkfvbkasdfadsfafsdtg f6345634635656' for example.
My formpanel has a LabelWidth property defined as 200, but this long field name is not restricted to this width. As a result, my combobox is either squashed over and not in line with the rest of the form, or doesn't display at all (depending on the length of the field label).
I've tried setting the combo box label width to 200 explicitely or applying a LabelStyle of say "width: 200px; overflow: hidden;" but these don't seem to have any effect.
Are there any recommended ways to handle long field labels? (the problem we have here is that the user can define their own label, so we can't control the length, as rigidly as we'd like).
Any pointers would be great,
Many thanks,
Doug