How can I make the row height of a grid taller?
You should try creating a custom CSS class for the row element. You can add some runtime code to the .cs code file for the page. See this article
Related
I have a List component from react-virtualized where I am using the height prop to set its row height. However, the horizontal scrollbar is overlapping with the last row, making it hard to see the text content of the last row. Is there a way to increase the height of the last row so that the horizontal scrollbar doesn't overlap with the text. Doing this dynamically in code messes things up when one is dealing with a dynamic List growing in real-time. I tried using the last-child selector but had no success. Any insight would be appreciated.
The react-virtualized Grid component accounts for horizontal and vertical scrollbar size to avoid this problem. (You can see this on the Grid demo page.) However it's expected that the List component will not scroll horizontally so it will only account for the vertical scrollbar size.
If your UI needs to scroll horizontally, you may have better luck using a 1-column Grid.
I have a vaadin-combobox inside a slim grid cell/column, when I open the combobox the contents is restricted horizontally to the space in the cell and I can't see the values. Vertically it overlaps correctly. I have been searching for some CSS to make the overlay of values wider like you do with a normal HTML picklist but I couldn't find it.
Thanks for any pointers.
I am using Sencha GXT 4.0.2. I have added Grid inside a BorderLayoutContainer. When the UI is rendered, there is a small gap between the column header context menu arrow and next column header. For eg. width of <tr> is set to 100px, but width of <div> in header is 87px.
Following is the flow of control:
view -> BorderLayoutContainer -> BorderLayoutContainer -> FlowLayoutContainer ( as center layout data) -> Grid ( as widget )
When I add the editor to this grid, and start editing, all the columns of the selected row and its editors are shifted to left (as if they are inline with the <div> element's width).
The problem I am facing is similar to what is posted in gxt (ext gwt) Grid and column width for gwt ext, but my issue is with Sencha gxt.
Any help is much appreciated.
header misalignment
editor-misalignment
This particular problem occurs when the grid is not provided with a size from either the parent container or directly with grid.setPixelSize(int, int). You can test this out by setting grid.setPixelSize(500,500) and the columns and rows should be sized properly. If that doesn't work, a test case with the problem would be needed to replicate the issue.
I have been trying to add Data items for my combobox in the DialogWindow of my mfc project, at design time by setting strings delimited by semi-colons for the Data property of this combobox.
But it just shows empty combobox at runtime. I tried using AddString() method of this combobox manually in the OnInitDialog() event of the DialogBox too. But that was also not working.
Tried creating a demo project again and when I added the combobox and put the value a;b in the Data property of it, it is showing up. But tried the same on my project and it is still showing the empty list in the new combobox! Tried to compare both project's code, like the header files and initialization's etc. Found that both are same. Other than some event declaration for the buttons and my custom c++ code in my project, the rest of the code is same as that of the newly created demo project!
Why in my project this combobox is showing an empty list of items? :(
EDIT:
Just noticed that the items are already in the list. But the dropdown is of small height and thus preventing the actual items from showing up! :(
Tried to look increasing the size of the combobox, but I couldn't find any property in the Property Window and dragging the corners of th combobox doesn't increases the height either! :(
Increase the size of the dropdown list like this, in the design window:
Click on the arrow on the right side of the combobox (highlighted in yellow on first pic). Then click and drag the bottom mid resize marker to increase the height (highlighted in the second pic).
This will increase the size of the dropdown list.
Otherwise when we try to click on the resize markers to increase the height, it would be disabled. So make sure you click on the arrow on the right side of the combobox first.
I am using Dreamweaver cs6 to create a fluid layout. When the new document option window first opens it gives you options on the percentages and number of columns for each device. I have done this, but would like to change the percentages and number of columns after the document has been created. Is there a way to change the percentages and column numbers of a fluid layout in Dreamweaver cs6 after the document has been created?
You can edit these values in the css file DW asked you to create:
/*
Dreamweaver Fluid Grid Properties
----------------------------------
dw-num-cols-mobile: 5;
dw-num-cols-tablet: 8;
dw-num-cols-desktop: 10;
dw-gutter-percentage: 25;
Inspiration from "Responsive Web Design" by Ethan Marcotte
http://www.alistapart.com/articles/responsive-web-design
and Golden Grid System by Joni Korpi
http://goldengridsystem.com/
*/
After saving, exiting and re-opening your project the columns and gutter percentage will haven been updated.
Dreamweaver CS6: The Missing Manual (https://www.inkling.com/read/dreamweaver-cs6-missing-manual-david-sawyer-mcfarland-1st/chapter-11/fluid-grid-layouts) says:
Unfortunately, once you pick a gutter value, there’s no way to return to this [the "New Fluid Grid Layout"] screen and change it. In fact, since Dreamweaver uses this value to make some complex calculations concerning the columns you insert, there’s no easy way to change this value once you create the layout.
We could perhaps try changing the width and padding numbers in the existing FGL CSS (those numbers Dreamweaver calculated to the fourth decimal upon the file's creation), but it's probably easier just to create a new fluid grid layout style sheet. A more user-friendly solution would be welcome, however.
I had the same problem and i found a simple solution. You create a new fluid grid layout with the changes you wont to make you save it so that it will creat for you the new css and respond.min.js file. You delete all the other new files you created and you keep only the respond.min.js and you replace the old one with the new one and you finished. Oh keep a copy of the old one just to be sure.
I had the same problem and I found a pretty simple solution.
You need to create a new Fluid Grid layout (File - New Fluid Grid Layout), set up the number of columns, widths, and gutters as you want and then save somewhere the new css file. Styles that regulate layout (i.e., widths, margins between columns, and number of columns) are set under .gridContainer so you just need to replace .gridContainer styles in your old fluid layout css file with .gridContainer styles from your new fluid layout css file. Be sure to replace .gridContainer styles for all screen sizes you changed (desktop, table, mobile or all of them).