Is there any way to customize material-ui List width? It looks like no matter what width I put in style or innerDivStyle, it's always maxed out at 350px. I'd love to see a way to set custom width (like 100% or whatever arbitrary width) to List. BTW, currently I'm using material-ui v0.15.0-beta.1
Related
I am using the Material UI Text Field component as a search bar in my app. On one of the pages, I have it in 2 spots, one on the outside of the page, and another inside my DevExtreme Data Grid.
See here
For whatever reason, this shrinks the search bar, despite it being the exact same component being used in 2 spots.
My question is, what causes MUI to shrink the height of their text input field so that I can fix it accordingly inside of my data grid?
I've tried adjusting line-height, padding, margin's, etc all inside the data grid, unfortunately to no avail. The only thing I've noticed is that deep in the inspector tool, the shrunken search bar has a height of 1.435em, and checking that off will cause the search bar to correct itself to the standard height.
I am trying to display large (up to 25k characters) rich text in the ag-grid cell. I want to display only specific text at first with show more link. When you click on show more link whole text will be shown with show less link.
Rich text includes bold, italic, underline, text-color, bullets, numbering, image, etc.
This leads to dynamic height change for cells. I need to calculate the height for each cell depending on the text.
Do anyone have any idea, how the dynamic height can be handled? Or Is there any npm library to handle such kind of requirement?
I am using ag-grid with angukar9 am using ag-grid version 23 with angular9, so autoHeight feature is not available.
So basically, I have requirement for rendering larger rich text into ag-grid cell with dynamic height, do anyone have any approach for this thing. Please let me know.
show_more
show_less
I would like to change height for all input box in smart filter bar to smaller, is it possible without using CSS? In smart filter bar it is possible to change width, but not height, somebody has solved this problem? Thanks!
Accrding to the manual it is not possible to change height with native function. You must use css.
I need a CodeMirror editor which starts with a certain width and then grows automatically to the right to match the maximum line length. I.e. roughly what CodeMirror does when height is set to auto, but with width.
Here's a self-contained example. The editor grows automatically along the y-axis fine, but not along the x-axis. By tweaking the CSS, I can either have a fixed width editor with a scrollbar, or one which fills the entire width of the browser, but not one which grows as you type. I assume overflow-x is relevant, but I don't understand how it interacts with other CSS size properties set on parent elements. I also tried setting that property on CodeMirror-scroll, but it didn't help.
I believe this can be done using CSS properties alone. In fact I have this behaviour in my application already, but growing to the left, rather than the right, but I don't understand why it happens, or how to reproduce it in a small example.
This question is essentially the same, but for the vertical scrollbar.
Simply add float:left to the CodeMirror div.
<div id="here" style="float:left"></div>
This is not something CodeMirror supports. You may be able to get something working by setting .CodeMirror's width to (-webkit-)fit-content, but there will likely be corner cases where this breaks the scrollbars or cursor placement.
I am currently designing a report using iReport 4.7.0. At the moment I am trying to figure out how to dynamically adjust the height of a textField, if its contents is too big for the initial height. It seems, that the option Stretch on overflow achieves this. But I am having problems with that.
If a textField is not stretched, the spacing before and after the text is good, because its achieved by setting the textField height higher than the font size. But if the textField gets dynamically bigger because the containing text is to long to display with the initial height, the lines seem awfully packed, there is no spacing whatsoever.
I tried so resolve this by setting Spacing before and Spacing after for the specific textField but this seems to end in JasperReports thinking, that the textField doesn't need to re-size at all, even if the text is not fitting.
Is it possible, that the size created by the Spacing before and Spacing after option is taken into account on calculating, if a textField needs to be resized on overflow? Or am I doing something wrong here?
Use padding:
Right-click an element
Select Padding and Borders
-or-
Right-click an element
Select Show Properties
Click the Borders tab
Set padding values as required
This should provide a constant spacing even if box resizes. For complex layouts, experiment with float position of elements, as described here.