grid

css font-size and line-height not matching the baseline

断了今生、忘了曾经 提交于 2019-12-02 12:15:27
I'm trying to do something that should be very simple but I've spent my day between failures and forums.. I would like to adjust my font in order to match my baseline. On indesign it's one click but in css it looks like the most difficult thing on earth.. Lets take a simple example with rational values. On this image I have a baseline every 20px. So for my <body> I do: <style> body {font-size:16px; line-height:20px;} </style> Everything works perfectly. My paragraph matchs the baseline. But when I'm scripting my <h> that doesn't match the baseline anymore.. what am I doing wrong? That should

Adding columns to grid using Vaadin 8.0.7

旧巷老猫 提交于 2019-12-02 12:13:24
问题 I want add column to grid, when i click to button ("backBtn"). Then i get the value from the textfield ("filterText"), and that will be the name of the new column. Who can help me? The code is from tutorial, but i need add the new feature here. Thanks ! You can find my code in attachment. Grid is in class "MyUI" This is clas Customer package my.vaadin.app; import java.io.Serializable; import java.time.LocalDate; import java.util.Date; /** * A entity object, like in any other Java application.

c# adding float numbers behave weirdly [duplicate]

与世无争的帅哥 提交于 2019-12-02 10:03:25
This question already has an answer here: Can anyone explain this floating point weirdness to me? 3 answers I am trying to add a row's cells and display the total in a new cell in a grid. I am using gridControl from DevExpress. The grid has 12 columns representing the months in a year and I want to add the months values and display the total in the 13th column. My problem is that if I have a float value of "111,22", it is added as "111,2188" to the database and displayed without the precision in the 13th cell. So, I have two problems. First one is "why does it insert it as 111,2188 to database

Bootstrap 3 - Aligning column height

 ̄綄美尐妖づ 提交于 2019-12-02 09:56:29
create a site for educational purposes but I'm stuck with grid/column height issue. Here's an image of site I'm trying to replicate: Click me Here's what I've got so far: Click me My problem is, on the first row I have two columns (col-sm-6) and on the first column I nested another row and created 2 additional columns within it. However, the second columns seems to be taller than the first one. I tried to adjust the img size but it loses the responsiveness that I need. Hope someone understood what I'm trying to say, I'm really new to web development. I hope someone can help me out. :( Please

Bootstrap grid not displaying correctly

喜夏-厌秋 提交于 2019-12-02 09:01:25
how can I display correctly my grid without huge space, and look good? my photo My code: <div class="first"> <div class="container"> <div class="row"> <div class="col-md-6"> <img src="http://img.uefa.com/MultimediaFiles/Photo/competitions/General/02/35/49/87/2354987_w2.jpg" class="img-responsive"/> </div> <div class="col-md-3"> <img src="http://img.uefa.com/MultimediaFiles/Photo/competitions/Comp_Matches/01/83/81/26/1838126_s2.jpg" class="img-responsive"/> </div> <div class="col-md-3"> <img src="http://img.uefa.com/MultimediaFiles/Photo/competitions/Comp_Matches/02/36/89/27/2368927_s2.jpg"

How to set cell background color in grid/table in view in Vaadin?

怎甘沉沦 提交于 2019-12-02 09:01:20
问题 I am using Vaadin and I would like to set backgroung color to specific cell in my grid/table or if there is no possible to set background color to specific cell I would like to at least set a font color to specific cell in grid/table. The code TableView where I have got a grid/table is below: package com.trading.scraper; import com.vaadin.navigator.View; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.Grid; import com.vaadin.ui.VerticalLayout; import java.util.Arrays; import java

Custom gxt Cell which may take Widget

为君一笑 提交于 2019-12-02 08:56:00
I need a Column in which it was possible to put a Widget. I have this: import com.google.gwt.cell.client.AbstractCell; import com.google.gwt.safehtml.shared.SafeHtmlBuilder; import com.google.gwt.user.client.ui.Widget; public class WidgetGridCell extends AbstractCell<Widget> { Widget widget; public WidgetGridCell(Widget widget) { this.widget = widget; } @Override public void render(Context paramContext, Widget param, SafeHtmlBuilder pb) { } } But I do not know how to include the widget in HTML P.S. Or not Widget, only GWT Button will suit me. See here for a number of examples of AbstractCell

Can't create Columns in my WPF Grid

半城伤御伤魂 提交于 2019-12-02 08:30:33
问题 I have this code for my very very basic WPF Project. <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid ShowGridLines="True"> <ColumnDefinition x:Name="LeftColumn"></ColumnDefinition> </Grid> However, the column definition line gives me an error: Error 1 Cannot add instance of type 'ColumnDefinition' to a collection of type

Color legend for grid panel in ExtJS4

狂风中的少年 提交于 2019-12-02 07:54:01
问题 I have a requirement that each cell in the grid can take any color out of available 8 colors based on some criteria. After that I need to show a color legend of those 8 colors and their tag names below the grid panel. Can somebody suggest me if ExtJS4 has any that kind of feature for grids or any idea on how can I approach this problem. /** Example of CSS */ .r1 .x-grid-cell-inner { background-color: #f0f6ff; color: #09d6ff; border-left: 1px dotted rgba(2, 3, 3, 0.27); border-right: 1px

WPF DataGrid Performance - Filter performance

依然范特西╮ 提交于 2019-12-02 07:34:58
问题 We are in a phase to convert our application from SilverLight to WPF, where we have developed our own custom DataGrid on top Silverlight's native one. Application consists of a large number of views out of which nearly 99% views are using these custom grids. One of the biggest challenge in this excercise that we are facing is the performance of grid in WPF version of application in comparison to SilverLight. In particular filtering is extremely slow! We have created two test applications to