jqGrid jQuery UI button wrapping in toolbar
Posted
by gurun8
on Stack Overflow
See other posts from Stack Overflow
or by gurun8
Published on 2010-05-14T02:55:50Z
Indexed on
2010/05/14
3:04 UTC
Read the original article
Hit count: 899
I have a jQuery UI Button that I'm placing in a jqGrid toolbar but the contents of the button are wrapping. I've tried to prevent the wrapping by using CSS white-space Property to no avail.
Here's a snapshot of what's happening:
Here are two code snippets of my attempt to fix the problem:
$("#t_imageList").css("white-space", "nowrap").html('<button>Add</button>');
$("#t_imageList button").button({
icons: {primary: 'ui-icon-plus'},
text: true
});
and/or
$("#t_imageList button").css("white-space", "nowrap").button({
icons: {primary: 'ui-icon-plus'},
text: true
});
Has someone experienced the same issue? If so, what was your solution?
© Stack Overflow or respective owner