grid

What do push/pull classes do in a grid system?

风格不统一 提交于 2019-12-04 13:44:26
问题 When I look at a lot of CSS grid systems and frameworks they usually have a standard column and row setup with percentage widths. Something like this for example: standard grid column: .col-10 { width: 83.33333%; width: calc(100% / 12 * 10); width: -webkit-calc(100% / 12 * 10); width: -moz-calc(100% / 12 * 10); } However, in addition to this, I often see other classes like .push or .pull . For example like this: push/pull classes: .push-10 { left: 83.33333%; left: calc(100% / 12 * 10); left:

How can I create a triangulated sphere using 'isosurface' function of MATLAB

痞子三分冷 提交于 2019-12-04 11:25:27
How can I create a Triangulated sphere with faces of triangles with the same area each one. I want something like this, http://imageshack.us/a/img198/5041/71183923.png and I searched and saw I could use the function isosurface of MATLAB, but the triangles don't have equal area and form and they are essentially squares divided in two with the square diagonal. here's my code: >> [X,Y,Z] = meshgrid(-10:10,-10:10,-10:10); >> V = sqrt(X.^2+Y.^2+Z.^2); >> fv = isosurface(X,Y,Z,V) >> p = patch(fv); >> set(p,'EdgeColor','g') and the result is below: http://imageshack.us/a/img818/7125/72103297.png Use

MvcContrib Grid Sorting on complex object

爷,独闯天下 提交于 2019-12-04 11:13:55
I am trying to work with MvcContrib Grid control. But I cannot seem to get the sorting to work on complex objects that hold other objects. I have setup my controller/classes/Views similar to the OP in this question. Sorting with MVCContrib I have tried to use the SortColumnName to my childobject.property but it gives me an error saying My main object does not have this property. This is my code snippet //POCO class class Issue { public int ID {get; get; } ..... public int priorityId {get; set;} public virtual Priority priority {get; set;} } //Controller code public ViewResult Index(int? pageNo

Angular Material: Nested grid

有些话、适合烂在心里 提交于 2019-12-04 10:58:20
I'm currently using Bootstrap for a web application, but want to switch to Angular Material. Right now I am playing around with the grid. I have triple nested grid structure. I don't think the children are being displayed correctly, or at least I haven't programmed them to display correctly. I want them to not be vertically centered, but I don't know why they are behaving this way. Additionally, I want a grid-title 's header to not interfere with the child grid-list (I want the child grid-list to begin underneath the grid-title-header ). The same goes with the "oldest" parent's footer. The

jqGrid tree grid with pager

柔情痞子 提交于 2019-12-04 10:40:00
How do we make a tree grid with pager using jqGrid? I have checked and try the demos, but it didn't show any pager, even though there is a pager div in the code How do create the pager ? Tree grid has some limitations which are documented : Pager functionality currently disabled for treeGrid In other place of the documentation you can read almost the same: Since jqGrid currently does not support paging, when we have a treegrid the pager elements are disabled automatically. JoshD I got pagination to work by modifying the setTreeGrid function. I commented out the following line: $t.p.pgbuttons =

How do I layout a form in WPF using grid or other controls for maintainability

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:13:09
问题 I have a WPF form, I want to lay out a standard form onto it. Each form element will have a label, and then a control. Pretty standard stuff. If I use a wrap panel, it can cause the label and the control to be separated, but I want them to stay together. Is there some WPF equivalent of <nobr/> ? Grid works, and allows for column spanning etc, however I really really hate that you specify the column and row on each control. This makes it extremely inconvenient to reorder or insert things into

ExtJS 4 - Wrapping the column headers in grid panel

寵の児 提交于 2019-12-04 09:57:38
I have a grid which has long phrases as header texts. These texts are never displayed properly in the available width for the column. Is there any way these texts can be wrapped and limited to the column width? Here is an image of the issue: Give this a shot in your CSS: .x-grid3-hd-inner { overflow: hidden; padding: 3px 3px 3px 5px; white-space: normal; } And additionally, another option if the first doesn't work: .x-column-header-inner .x-column-header-text { white-space: normal; } .x-column-header-inner { line-height: normal; padding-top: 3px !important; padding-bottom: 3px !important; text

Selenium Grid +Error forwarding the new session Empty pool of VM for setup Capabilities

家住魔仙堡 提交于 2019-12-04 09:49:16
I am trying a POC on selenium grid. I am receiving this error : Error forwarding the new session Empty pool of VM for setup Capabilities [{browserName=chrome, version=47, platform=WIN8_1}] Below is the code : BeforeTest public void setup() throws MalformedURLException{ nodeURL="http://localhost:4444/wd/hub"; DesiredCapabilities capabilities = DesiredCapabilities.chrome(); capabilities.setBrowserName("chrome"); capabilities.setVersion("47"); capabilities.setPlatform(Platform.WIN8_1); extent = new ExtentReports("./extentReport.html",true,DisplayOrder.NEWEST_FIRST); System.setProperty("webdriver

Moving MATLAB axis ticks by a half step

半城伤御伤魂 提交于 2019-12-04 09:49:03
I'm trying to position MATLAB's ticks to line up with my grid, but I can't find a good way to offset the labels. Also, if I run set(gca,'XTickLabel',1:10) , my x tick labels end up ranging from 1 to 5. What gives? You need to move the ticks, but get the labels before and write them back after moving: f = figure(1) X = randi(10,10,10); surf(X) view(0,90) ax = gca; XTick = get(ax, 'XTick') XTickLabel = get(ax, 'XTickLabel') set(ax,'XTick',XTick+0.5) set(ax,'XTickLabel',XTickLabel) YTick = get(ax, 'YTick') YTickLabel = get(ax, 'YTickLabel') set(ax,'YTick',YTick+0.5) set(ax,'YTickLabel',YTickLabel

Telerik Kendo UI grid: grouping and sorting survive grid.refresh() but collapsed groups get expanded; how to preserve state

北战南征 提交于 2019-12-04 09:43:02
问题 As is typical for grids in a "dashboard" application that monitors dynamically changing data, my (Telerik) Kendo UI grid is refreshed with fresh data periodically, every 60 seconds: grid.dataSource.data(freshData); grid.refresh(); // have been informed this refresh may not be necessary The schema does not change, but some new rows might show up in the dataset and some might have been removed. Although the grid.refresh() leaves the groupings intact, and the sort state is also preserved, any