-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search Box Shrinks When Clicked In #172
Comments
The shrinking problem should be fixed by the option I'm not sure if disabling or hiding the search boxes is a better idea. If you really want to hide some search boxes, I guess you can use JavaScript. For the appearance of search boxes, please see examples at http://rstudio.github.io/DT/008-filter.html |
Thanks. The appearance of the boxes webpage is useful. I had a look to see if it was possible to keep the clear buttons and change the padding with CSS, but couldn't find the information. Have you done that before ? |
I believe you customize CSS in shiny: http://shiny.rstudio.com/articles/css.html |
|
Changing the padding in this case is not a trivial job. You have to inspect the element very very carefully using the web developer tools of your browser (e.g. Google Chrome), to make sure that your CSS rule overrides all other rules defined on |
An example from the DT website demonstrates that when a text search box gains focus, it becomes narrower, and the text below it, "setosa", can't entirely be seen. It also reduces in height. This must be a bug.
When I click on "setosa" from the dropdown suggestions, then I click in another box, such as underneath
Petal.Width
, the text changes to["setosa"]
.I also wonder if the search boxes for which
searchable = FALSE
can be entirely omitted from being displayed to the user. I'd like nothing shown there.The default padding of the search boxes is rather large. If you narrow the web browser so that the search boxes are narrower, even if the box looks reasonably wide, the large absolute default padding means only one or two characters are visible at a time. The padding is quite big between the input text and the cross symbol to remove the input. This would be annoying when some column contents are much narrower than content in other columns, because default column widths for tables are based on the data.
The text was updated successfully, but these errors were encountered: